arange() NumPy arange() is one of the array creation routines based on numerical
ranges.
It creates an instance of ndarray with evenly spaced values and returns the
reference to it.
import numpy as np
e = np.arange(0, 1, 0.3)
print(e)
>>> import numpy as np
>>> np.linspace(start=0, stop=7.5, num=4)
array([ 0. , 2.5, 5. , 7.5])
>>> list(_)
[0.0, 2.5, 5.0, 7.5]