A
Q. What will be the output of the following Python code?
Code:
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
- Correct Answer - Option(B)
- Views: 27
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.