How to get the transpose of this matrix..Any easier ,algorithmic way to do this...
1st question:
Input a=[[1,2,3],[4,5,6],[7,8,9]] Expected outpu
You can use list(zip(*a)).
list(zip(*a))
By using *a, your list of lists can have any number of entries.
*a