Transpose and Flatten

  • + 0 comments
    import numpy as np
    
    n, m = map(int, input().split())
    
    arry = np.array([input().split() for i in range(n)], int)
    
    print(np.transpose(arry))
    print(arry.flatten())