“Lista de grade Python” Respostas de código

como fazer uma grade em python

grids = [[0] * gridSize for _ in range(gridSize)]
Doubtful Dingo

Lista de grade Python

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])

Respostas semelhantes a “Lista de grade Python”

Perguntas semelhantes a “Lista de grade Python”

Mais respostas relacionadas para “Lista de grade Python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código