Transpose and Flatten

  • + 0 comments

    MY SOLUTION

    import numpy n,m = list(map(int,input().split())) l = [] for i in range(n): b= list(map(int,input().split())) l.append(b)

    a = numpy.array(l) print(numpy.transpose(a)) print(a.flatten())