Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Dec 22, 2021
Embed
What would you like to do?
def obtener_matriz_inicial():
matriz = []
for y in range(FILAS):
# Agregamos un arreglo a la matriz, que sería una fila básicamente
matriz.append([])
for x in range(COLUMNAS):
# Y luego agregamos una celda a esa fila. Por defecto lleva "Mar"
matriz[y].append(MAR)
return matriz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment