import numpy as np
np.linspace(0, 1, 6)
array([0. , 0.2, 0.4, 0.6, 0.8, 1. ])
np.arange(4, 10)
array([4, 5, 6, 7, 8, 9])
To create a single zero, you can use the zeros function:
zeros
np.zeros(1)
array([0.])
or the arange function:
arange
np.arange(1)
array([0])