You are viewing a single comment's thread. Return to all comments →
import numpy s = list(map(int, input().split())) matrix = [] for _ in range(s[0]): matrix.append(list(map(int, input().split()))) my_array = numpy.array(matrix) print(numpy.transpose(my_array)) print(my_array.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 →