why this code:
grid = [[" "] * 10] * 5
for c in range(10):
grid[0][c] = '#'
for r in grid:
print(r)
outputs this?
['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']
['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']
['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']
['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']
['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']
I'm fixing the first index to be 0. No other sublist should change.