Step 1 of 7

Step 1 · Read and run

Start and stop

Give range() two numbers and the first one is where it starts.

The second number is where it stops, and it stops before reaching it. So range(1, 6) gives 1, 2, 3, 4, 5, but not 6.

A handy way to remember it: to count from 1 to 10, write range(1, 11), one past the last number you want.

Run the program to carry on.
start.py

Output

Press Run to see what your program prints.