A

Admin • 833.24K Points
Coach

Q. What will be the output of this statement?

Code:
1. i = 0
2. while i < 5:
3. print(i)
4. i += 1
5. if i == 3:
6. break
7. else:
8. print(0)
  • (A) 1 2 3
  • (B) 0 1 2 3
  • (C) 0 1 2
  • (D) 3 2 1
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Python
  • Hashtags:

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.