It creates an array by using the evenly spaced values over the given interval. The interval mentioned is half opened i.e. [Start, Stop]).
numpy.arrange(start, stop, step, dtype)
It accepts the following parameters.
An array within the specified range is returned.
import numpy as np arr = np.arange(0,10,2,float) print(arr)
Output:
import numpy as np arr = np.arange(10,100,5,int) print("The array over the given range is ",arr
Output: