M2) Conditional sum

The loop in Listing 1 adds each even value of i to total.

Listing 1: Conditional sum using a for loop (Question 1).
total = 0  # Running total for the selected values.

for i in range(1, 5):
    if i % 2 == 0:
        total = total + i

What is total after the loop?

  1. 0
  2. 3
  3. 6
  4. 10