You are viewing a single comment's thread. Return to all comments →
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())
Seems like cookies are disabled on this browser, please enable them to open this website
Transpose and Flatten
You are viewing a single comment's thread. Return to all 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())