Exercise 2: Count Without the Multiples of 3 or 5 — Possible Solution ==================================================================== skipped = 0 for n in range(1, 21): if n % 3 == 0 or n % 5 == 0: skipped += 1 continue print(n, end=" ") print() print("left out:", skipped) Example run: 1 2 4 7 8 11 13 14 16 17 19 left out: 9 WHY THIS WORKS AS AN ANSWER ------------------------------ range(1, 21) gives 1 to 20 because the end is excluded. For a multiple of 3 or 5 the counter goes up and continue jumps to the next number, so print() never runs for it. The counter has to go up BEFORE the continue: any line after the continue is skipped. print(n, end=' ') keeps every number on one line, and the bare print() afterwards ends that line. The numbers left out are 3, 5, 6, 9, 10, 12, 15, 18 and 20, which is 9 of them.