After this code, how many cells of grid hold the value 1?
grid = [[0] * 3] * 3
grid[0][0] = 1Answer: 3
* 3 repeats the reference to one inner list, so all three rows are the same list and the 1 appears in each row. Build rows with [[0] * 3 for _ in range(3)].