Exerpad
Exercise 3 · Chapter: For LoopsRequired+50 XP

Fix the Range

This program should print 1 to 5, but it only prints 1 to 4. Fix it!

Expected output:

1
2
3
4
5
Need a hint?
3 available · costs 5 XP each
python
for i in range(1, 5):
print(i)
Output
Run your code to see the output here.