Exercise 6 · Chapter: While LoopsRequired+50 XP
Fix the Countdown
This countdown stops too early — it prints 5 to 2 but misses 1. Fix it!
Expected output:
5 4 3 2 1
Need a hint?
3 available · costs 5 XP each
python
i = 5
while i > 1:
print(i)
i = i - 1
Output
Run your code to see the output here.