import pprint

cols = int(input("Cols: "))
rows = int(input("Rows: "))

one_row = cols * [0]
grid = []
for r in range(rows):
    grid.append(one_row+[]) # deep copy

print(grid)
# pprint.pprint(grid)

8d454db531e60b7a637de60e5a8c03f7f462ccbe
<mask token>

<mask token>
for r in range(rows):
    grid.append(one_row + [])
print(grid)

<mask token>
cols = int(input('Cols: '))
rows = int(input('Rows: '))
one_row = cols * [0]
grid = []
for r in range(rows):
    grid.append(one_row + [])
print(grid)

import pprint
cols = int(input('Cols: '))
rows = int(input('Rows: '))
one_row = cols * [0]
grid = []
for r in range(rows):
    grid.append(one_row + [])
print(grid)

import pprint

cols = int(input("Cols: "))
rows = int(input("Rows: "))

one_row = cols * [0]
grid = []
for r in range(rows):
    grid.append(one_row+[]) # deep copy

print(grid)
# pprint.pprint(grid)
