LearnPy Hub
← NumPy problems
Medium

Joining Arrays

Read two lines of integers of the same length. Print np.concatenate of them as a list, then the shape of np.vstack and the shape of np.column_stack.

Input

Two lines.

Output

Three lines.

Sample 1

Input
1 2 3
4 5 6
Output
[1, 2, 3, 4, 5, 6]
(2, 3)
(3, 2)

Sample 2

Input
1
2
Output
[1, 2]
(2, 1)
(1, 2)
solution.py
Output appears here
Joining Arrays · Python practice problem · LearnPy Hub