Let’s see how to generate sequence array using Numpy arange function in Python.
Using an arange method
There is Numpy arange function which is very useful for generating sequence array.
import numpy as np sequence_array = np.arange(start=100, stop=700, step=100) print(sequence_array)
As you can see the only thing is to set start, stop and step. Numpy arange does the rest.