Posts by dragonattack • 3 points
1 post
-
-3
votes1
answer106
viewsQ: how do I make an Nxn matrix, where N is a variable (acquired in input), in python. Because the example below cannot change the values in the indices?
E1 = input(). split() E2 = input(). split() Matri, numj = E1 name, idj = E2 matrix = [[0,0,0],[0,0,0],[0,0,0]] # I cannot make the matrix that is the user’s choice, that is a variable.. for l in…