Posts by Micro • 9 points
1 post
-
-1
votes1
answer33
viewsQ: Matrix in Python 3
I wanted my program to run the following. 1 2 1 3 2 1 5 4 3 2 1 And the same for any other number. My code is like this: def matriz2(num_linhas): for linha in range(1,num_linhas+1): for i in…