Vidyalelo
Python · Q77

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 77

Q77

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

A.
a a a a a
B.
a a a a a a
C.
a a a a a a ...
Answer
D.
a

Answer: Option C

Solution

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