You can put loops inside other loops: python for i in range(3): for j in range(3): print(f"({i}, {j})") Output: (,), (,), (,), (,), (,), (,), (,), (,), (,) The outer loop runs times.
For each outer iteration, the inner loop runs times. Total: × = iterations. Nested loops are common for 2D structures: tables, grids, matrices. The outer loop handles rows, the inner loop handles columns.