Lesson 7 of 26 · about 14 min
for loops and range
A for loop does something once for each item in a sequence. range() makes a sequence of numbers, and an accumulator builds up a result.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- for loop
- range()
- Accumulator pattern
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.