Step 1 of 6

Step 1 · Read and run

A counter

A counter is a total that goes up by 1 each time something happens. Put an if inside the loop, and add 1 only when the if is True.

This counts the multiples of 3 from 1 to 30. The if is inside the loop, and the count += 1 is inside the if, so it's indented twice.

Run the program to carry on.
count.py

Output

Press Run to see what your program prints.