You are viewing a single comment's thread. Return to all comments →
import numpy as np n,m,p = input().split() arr1 = [] arr2 = [] for i in range(int(n)): narr = list(map(int, input().split())) arr1.append(narr) for j in range(int(m)): marr = list(map(int, input().split())) arr2.append(marr)
arr1 = np.array(arr1) arr2 = np.array(arr2) print(np.concatenate((arr1, arr2)))
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 n,m,p = input().split() arr1 = [] arr2 = [] for i in range(int(n)): narr = list(map(int, input().split())) arr1.append(narr) for j in range(int(m)): marr = list(map(int, input().split())) arr2.append(marr)
arr1 = np.array(arr1) arr2 = np.array(arr2) print(np.concatenate((arr1, arr2)))