promptdojo_

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

Checkpoint

One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.

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.