Exercise 1: Add Up Only the Positive Numbers — Possible Solution ==================================================================== readings = [3, -1, 8, -5, 4, 0, -2] total = 0 for n in readings: if n <= 0: print("ignored", n) continue print("counted", n) total += n print("total of positive numbers:", total) Example run: counted 3 ignored -1 counted 8 ignored -5 counted 4 ignored 0 ignored -2 total of positive numbers: 15 WHY THIS WORKS AS AN ANSWER ------------------------------ When n is zero or negative, the print and the continue run, and the rest of that pass (the 'counted' message and the addition) is skipped; the for loop then moves straight on to the next item. The loop does not stop: that is the difference from break. Note the test is n <= 0 because zero is not positive. The alternative is to wrap the last two lines in if n > 0:, which gives the same result with one more level of indentation. The continue version scales better when there are several reasons to skip.