Step 1 of 6

Step 1 · Read and run

Do it three times

To do something several times, you could copy the line out. A for loop does the copying for you.

for count in range(3): means "do the indented lines 3 times". Like an if, the line ends in a colon and the lines that belong to it are indented by 4 spaces.

The last line isn't indented, so it isn't part of the loop: it runs once, after the loop has finished.

Run it, then change the 3 to 10.

Run the program to carry on.
cheer.py

Output

Press Run to see what your program prints.