Find and write the output of the following python code:
x = "abcdef"
i = "a"
while i in x:
print(i, end = " ")
Answers
Answered by
31
i i i i i i is the output of the given question
Explanation:
Following are the description of the following given code
- In the given question the variable "x" will store the string "abcdef" also the variable "i" is initialized with the value "a".
- After that loop will iterate hence the variable of i is not varies during the loop so it prints the i i i i i i is displayed on the console window.
- The print function in python is used for displaying the value it prints the value with space.
Learn More:
- brainly.in/question/10336898
Similar questions
Math,
5 months ago
English,
5 months ago
Business Studies,
10 months ago
Math,
1 year ago
Math,
1 year ago