What does this Python code print? total = 0; then for n in [2, 4, 6]: total = total + n; then print(total).
- Start at total = 0.
- After each iteration the total is 2, then 6, then 12.
- The program prints 12.
Common mistakes to check
- Confusing assignment with equality
- Testing only one convenient input


