Concept
A for loop visits each item of a sequence in turn. range(n) produces the numbers 0 to n-1, which is how you loop a fixed number of times or over indexes.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show for loops and range doing its job.
names = ["Ada", "Grace", "Linus"]
for name in names:
print(name.upper())
for i in range(3):
print(i) # 0, 1, 2
for i, name in enumerate(names, start=1):
print(i, name)Using range(len(names)) and indexing when you only need the items. Loop over the list directly, and reach for enumerate() when you also want the position.
Your roadmap puts these before for loops and range, unless you already know them.
Once a session shows you understand for loops and range, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on for loops and range.