Given two 1-D arrays a and b of the same length, stack them as two rows of a single 2-D array, with a as row 0 and b as row 1.
a
b
Input
a = [1 2 3] b = [4 5 6]
Output
[[1 2 3] [4 5 6]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)