0

Write a program in Python.

A two dimensional matrix is represented in Python as list of lists. Each inner list represent one row. Write a program with function transpose (m) that takes 2 dimensional matrix and returns it's transpose. DON'T USE ZIP OR NumPy

15th Aug 2017, 5:36 AM
Saurabh Panda
Saurabh Panda - avatar
1 ответ
+ 1
: Run an iterator in each list correspondingly : As the iterator reads from the list add it into another array(list of lists) parallely. You will get transpose of the matrix.
21st Aug 2017, 8:34 AM
Ayush Walekar
Ayush Walekar - avatar