Loops Inside Loops

Programming for ML with no experience — if you can type, you can begin

Checking every seat in a cinema before the doors open is not a job for one counter. "Seat 47" means nothing on its own; you need a row and a seat within that row. So you walk the room row by row, and inside each row you walk seat by seat, finishing the whole row completely before you ever step into the next one. Two counters, one nested inside the other, one for the row and one for the seat.

🔒 This is a Pro lesson — the interactive figure, worked examples, quiz and practice open with Pro access.

▶ Loops Inside Loops
← A Loop Is a ΣLists →