Создайте массив с ряд элементов

np.arange(4)

# And even an array that contains a range of evenly spaced intervals. To do this, you will specify the first number, last number, and the step size.
np.arange(2, 9, 2)
BlueMoon