A

Admin • 833K Points
Coach

Q. Study the following program:

Code:
x = 1
while True:
if x % 5 = = 0:
break
print(x)
x + = 1
What will be the output of this code?
  • (A) 2 1
  • (B) 0 3 1
  • (C) error
  • (D) None of these
  • Correct Answer - Option(C)
  • Views: 26
  • 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.