import numpy as np np.linspace(1,10,10) array([ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]) np.arange(1,10,1) array([1, 2, 3, 4, 5, 6, 7, 8, 9]) np.linspace(1,10,10,endpoint=False) array([1. , 1.9, 2.8, 3.7, 4.6, 5.5, 6.4, 7.3, 8.2, 9.1])