NumPy array size
import numpy as np numpy_array = np.array(range(1, 21)) result = np.size(numpy_array) print(result) #> 20