Exerpad
Exercise 6 · Chapter: For LoopsRequired+50 XP

Fix the Loop Variable

This program uses the wrong variable inside the loop. Fix it!

Expected output:

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