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

About Teachify

A modern platform designed to make computer science education more engaging and effective for both teachers and students.

Quick Links
© 2025 Teachify. All rights reserved.