Vidyalelo
Python · Q91

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 91

Q91

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

A.
1 2 3 4 5 6
Answer
B.
1 2 3 4 5 6 7
C.
error
D.
none of the mentioned

Answer: Option A

Solution

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