Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Intro to Programming) expand_more
Intro to Programming / Core Concepts

for loops

Learn for loops in Intro to Programming with a focused explanation, a topic-specific example, and a mastery check.

12 min read • Beginner
intro-programming-006.py
python
total=0
for amount in [12,18,25]:
 total+=amount
print(total)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content