import numpy as np a = np.array([1,2,3]) print(a) # [1 2 3] a2 = np.array([[1, 2], [3, 4]]) print('a2', a2) # a2 [[1 2] [3 4]] a3 = np.array([1, 2, 3, 4, 5], ndmin=2) print(a3) # [[1 2 3 4 5]] a4 = np.array([1, 2, 3], dtype=complex) print(a4) # [1 3]…