You are viewing a single comment's thread. Return to all comments →
A more readable version of the code!
import numpy as np
n, m, p =list(map(int, input().split(" ")))
arr_n1 = [] arr_m1 = []
for i in range(n): arr_n = arr_n1.append(np.array(list(map(int, input().split(" ")))))
for i in range(m): arr_m = arr_m1.append(np.array(list(map(int, input().split(" ")))))
print(np.concatenate((arr_n1, arr_m1), axis=0))
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 →
A more readable version of the code!
import numpy as np
n, m, p =list(map(int, input().split(" ")))
arr_n1 = [] arr_m1 = []
for i in range(n): arr_n = arr_n1.append(np.array(list(map(int, input().split(" ")))))
for i in range(m): arr_m = arr_m1.append(np.array(list(map(int, input().split(" ")))))
print(np.concatenate((arr_n1, arr_m1), axis=0))