V

Vaibhav Shukla • 4.53K Points
Extraordinary

Q. What will be the output of the following Python code?

Code:
i = 0
while i < 3:
    print(i)
    i += 1
else:
    print(0)
  • (A) 0 1 2 3 0
  • (B) 0 1 2 0
  • (C) 0 1 2
  • (D) error
  • Correct Answer - Option(B)
  • Views: 126
  • 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