Skip to content

Commit f0b063a

Browse files
authored
Concatenation in python
1 parent 73d1508 commit f0b063a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Concatenate.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Enter your code here. Read input from STDIN. Print output to STDOUT
2+
import numpy
3+
s=list(map(int,raw_input().split()))
4+
s1=[]
5+
s2=[]
6+
for i in range(s[0]):
7+
s1.append(list(map(int,raw_input().split())))
8+
for j in range(s[1]):
9+
s2.append(list(map(int,raw_input().split())))
10+
arr1 = numpy.array(s1)
11+
arr2 = numpy.array(s2)
12+
print numpy.concatenate((arr1, arr2), axis = 0)

0 commit comments

Comments
 (0)