Transpose matriks menggunakan pemahaman daftar

MT = [[0,0,0], [0,0,0], [0,0,0]]
for ir in range(3):
    for ic in range(3):
        MT[ic][ir] = M[ir][ic]
Xeno19Banbino