Answers for "transpose a matrix using list comprehension"

2

transpose a matrix using list comprehension

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]
Posted by: Guest on April-18-2021

Code answers related to "transpose a matrix using list comprehension"

Python Answers by Framework

Browse Popular Code Answers by Language