Introduction
A nested for loop lets you repeat actions inside another repeated action. It helps when you want to work with rows and columns or pairs of items.
When printing a table of numbers with rows and columns.
When checking every pair of items in a list.
When drawing patterns like squares or triangles with characters.
When working with grids, like a chessboard or pixel art.