By default, Numpy linespace includes the endpoint value in the generated sequence. If you want to exclude it, you can set the endpoint parameter to False.