Data Iteration · Part 6
Matrix traversal; for-else / while-else search; saddle points, transpose, magic-square check, spiral print.
Lesson 18 · Data Iteration · Part 6 — Level II · Guide
September 24, 2026 · Bridge Academy Python Program
Learning goals
- Traverse a matrix (list of lists) with nested loops.
- Use
for-elseandwhile-elseto express "no break taken". - Break cleanly out of an inner loop; combine with an outer flag to exit both.
- Combine per-row aggregation with per-column work in the same pass.
This lesson covers PCEP-30-02 objective 2.2.
Preview truncated — download the notebook to see the full lesson.