Vidyalelo
Python · Q89

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 89

Q89

What will be the output of the following Python code? i = 5 while True: if i%0O11 == 0: break print(i) i += 1

A.
5 6 7 8 9 10
B.
5 6 7 8
Answer
C.
5 6
D.
error

Answer: Option B

Solution

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