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.
- Prepare
- Python
- Numpy
- Concatenate
- Discussions
Concatenate
Concatenate
Sort by
recency
|
407 Discussions
|
Please Login in order to post a comment
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))