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
Try this replacing appropriate variable
import numpy as np data = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (9, 10, 11)) data_transpose = np.transpose(data) # replace with your code print(data_transpose)