Q.

What is the output of the following program :
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)

A. 0 1 2 0
B. 0 1 2
C. Error
D. None of the above
Answer» B. 0 1 2
1.4k
0
Do you find this helpful?
10

View all MCQs in

Python Programming

Discussion

No comments yet