loop
← All sections

Module 3 · Boolean values, conditional execution, loops, lists and list processing, logical and bitwise operations

Lists in advanced applications

Lists can hold other lists — and that one idea unlocks grids, boards, and tables. Nest them to build two-dimensional arrays and beyond, with comprehensions to create them in a single line.

Begin lesson 1 →
  1. 1Lists in listsA list can hold other lists — plus comprehensions, the one-line way to build one.
  2. 2Two-dimensional arraysRows and columns: model a grid as a list of rows and index it [row][col].
  3. 3Multidimensional listsStack the idea deeper — three dimensions and more, with real-world uses.