Vidyalelo
Python · Q80

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 80

Q80

What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: print(i, end = " ")

A.
no output
B.
i i i i i i ...
C.
a a a a a a ...
Answer
D.
a b c d e f

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board