promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_

Array and Series shapes - the table before the table — step 7 of 7

Checkpoint

One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.

Checkpoint. Write shape(rows) returning (n_rows, n_cols) for a list-of-lists table, and is_rectangular(rows) returning True only if every row has the same length — the sanity check you run before trusting any shape.

full-screen editor opens — close anytime to keep reading.