1>>> np.arange(3)
2array([0, 1, 2])
3>>> np.arange(3.0)
4array([ 0., 1., 2.])
5>>> np.arange(3,7)
6array([3, 4, 5, 6])
7>>> np.arange(3,7,2)
8array([3, 5])
9
1arange() NumPy arange() is one of the array creation routines based on numerical
2ranges.
3It creates an instance of ndarray with evenly spaced values and returns the
4reference to it.