Answer:
import numpy as np
list1 = [1,2,3]
list2 = [4,5,6]
my_array = np.array([list1, list2])
print( my_array )
print( my_array.shape)
Explanation:
To create a 2- dimensional array from two list or arrays, import the numpy package and call the numpy array method with the two arrays as the argument. Print the resultant array and the dimension with the numpy shape attribute.