cara membuat kisi dalam python
grids = [[0] * gridSize for _ in range(gridSize)]
Doubtful Dingo
grids = [[0] * gridSize for _ in range(gridSize)]
width = int(input("How wide?"))
height = int(input("How high?"))
grid = []
row = []
bak = "."
for i in range(width):
row.append(bak)
for i in range(height):
grid.append(row)
while True:
for i in range(len(grid)):
print(grid[i])