Lessons
The while loop
Repeat code for as long as a condition stays True.
8 min
The for loop
Visit every item in a sequence and total things up as you go.
9 min
Counting with range()
Loop a set number of times and count up, down or in steps.
9 min
break, continue and else
Stop a loop early, skip items, and detect when no break happened.
10 min
Nested loops
Put a loop inside a loop to handle rows, columns and combinations.
10 min
Next module
Lists & Tuples