#method:1 import array numbers = array.array('i',[1,2,3,4,5,6]) #in quotes we mentioned datatype int print(numbers) # method:2 import numpy as np nummber = np.array([1,2,3,4,5,6,'hi']) #THIS method don't need to mentioned the datatype & also is support element with different datatype print(number)