cours-snt/nsi/controle2/listcopy.py
2021-12-06 10:04:28 +01:00

6 lines
130 B
Python

A = [ [1,2,3], [4,5,6], [7,8,9] ]
B = [ [0,0,0], [0,0,0], [0,0,0] ]
for i in range(3):
for j in range(3):
B[i][j] = A[j][i]