1# np.arrange allows you to define the stepsize
2
3>>> np.arange(0,1,0.1) #--> 0.1 is the stepsize or interval
4array([0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
5
6# np.linspace allows you to define how many values you get including the specified min and max value
7
8>>> np.linspace(0,1,11) #--> 11 no of values you need
9array([0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1. ])