Transpose and Flatten

  • + 0 comments

    import numpy n,m = input().split() og=numpy.array([[s for s in map(int,input().split())] for _ in range(int(n))]) print(numpy.transpose(og)) print(og.flatten())