import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr) print(type(arr)) code example Example: numpy.array import numpy as np np.array(['A', 'B', 'C'])