Basic For Loop

easy

Trace through a simple for loop that prints numbers

Code

Step 0 of 11
1 total = 0
2 for i in range(1, 4):
3 total = total + i
4 print(total)
5 print("Done!")

Variables

Name Value
total 0

Output

No output yet