A

Admin • 825.56K Points
Coach

Q. How many times will the loop run?

Code:
i=2

while(i>0):

i=i-1
  • (A) 0
  • (B) 1
  • (C) 2
  • (D) 3
  • Correct Answer - Option(C)
  • Views: 5
  • 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.