We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
import numpy as np
r1,r2,c =map(int,input().split())
lt=[]
for i in range(r1):
l =list(map(int,input().split()))
lt.append(l)
ll=[]
for m in range(r2):
l2 =list(map(int,input().split()))
ll.append(l2)
lt1=np.array(lt,dtype=int)
ll1=np.array(ll,dtype=int)
print (np.concatenate((lt1, ll1)) )
Cookie support is required to access HackerRank
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 as np r1,r2,c =map(int,input().split()) lt=[] for i in range(r1): l =list(map(int,input().split())) lt.append(l) ll=[] for m in range(r2): l2 =list(map(int,input().split())) ll.append(l2) lt1=np.array(lt,dtype=int) ll1=np.array(ll,dtype=int)
print (np.concatenate((lt1, ll1)) )