M5) Decreasing loop with continue

The loop in Listing 1 uses continue before its print statement.

Listing 1: A decreasing for loop with continue (Question 1).
for i in range(4, 0, -2):
    # Decide whether to display the current value.
    if i % 2 == 0:
        continue

    print(i)

What does the code print?

  1. 4, 2, 0
  2. 4, 2, 0, -2
  3. Nothing is printed.
  4. 4, 2, 0, -2, -4
TipHow continue works

The continue statement skips the rest of the current loop iteration and moves to the next value.