A table of three rows is built by repeating one small list. Then the program writes into a single cell of the table. grid = [[0] * 2] * 3 grid[0][1] = 7 print(grid, grid[0] is grid[2]) What is printed on the screen?
Log in to join the discussion.
Loading…