You are viewing a single comment's thread. Return to all comments →
import numpy n,m,p=map(int,input().split()) l=[] for i in range(n+m): l.append(list(map(int,input().split()))) print(numpy.reshape(l,(n+m,p)))
Seems like cookies are disabled on this browser, please enable them to open this website
Concatenate
You are viewing a single comment's thread. Return to all comments →
import numpy n,m,p=map(int,input().split()) l=[] for i in range(n+m): l.append(list(map(int,input().split()))) print(numpy.reshape(l,(n+m,p)))
we can also printn output using reshape