Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Llena matrices con numeros aleatorios
import random
matriz = []
n = int(input("Ingrese el # de filas\n"))
m = int(input("Ingrese el # de columnas\n"))
for i in range(n):
matriz.append([])
for j in range(m):
matriz[i].append(random.randint(0,100))
for i in range(len(matriz)):
print(matriz[i])
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.