Track 4 · Lesson 8 of 11
Nested loops: grids, tables and pairs
Put one loop inside another to work through rows and columns, build tables, list every pair, and understand how the work grows.
You will be able to
- Trace a loop inside another loop and predict how many times the inner body runs
- Print grids and tables row by row
- List every pair of items exactly once by starting the inner loop after the outer value
- Reset per-row accumulators in the right place
Included with a Formula Quest membership
It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.