When the while loop ends
Predict the output · Medium · §7.4 While it is true
Predict the output without running the code.
Code
i = 5
while i > 0:
i -= 2
print(i)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.