import numpy as npnumpy_array = np.array([1, 2, 3, 4, 5]) # Creating a NumPy arrayslst=list(numpy_array) # conver numpay array to listprint(type(lst)) # <class 'list'>
You can also convert a NumPy array to a Python list using the tolist() method of the NumPy array.
array_anme.tolist()