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