M

Mr. Dubey • 53.59K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 165
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics