You've learned that range(start, stop) counts from start up to but not including stop. Now use it to drive a for loop.
A countdown app needs to print the numbers 1 through 5, each on its own line. You'll generate them with range() instead of typing them out.
Your tasks
1. Write a for loop that uses range(1, 6) so the loop variable takes the values 1, 2, 3, 4, 5
2. Inside the loop, print the current number
Remember: range(1, 6) stops before 6, so it produces 1 through 5 — exactly what you want.
Expected output
Constraints
- Use
range(1, 6) — do not type the numbers 1 through 5 as a list
- Use a
for loop to print each number on its own line
- Print only the numbers, with no extra text