Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Matriz:
def __init__(self, columnas, filas):
self.filas= filas
self.columnas= columnas
print("filas: ",filas,"columnas: ",columnas)
def llenarMattriz(self, filas, columnas):
matriz = []
for i in range(filas):
matriz.append([])
for j in range(columnas):
matriz[i].append(int(input("Digite el elemento a adicionar: ")))
matriz= Matriz(3,3);
matriz.llenarMattriz(matriz.columnas,matriz.filas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.