2D Lists & Nested Loops
number_grid = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], [0], ] for row in number_grid: for col in row: print(col) //Output : 1 // 2 // 3 // 4 // 5 // 6 // 7 // 8 // 9 // 0
number_grid = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], [0], ] for row in number_grid: for col in row: print(col) //Output : 1 // 2 // 3 // 4 // 5 // 6 // 7 // 8 // 9 // 0