Articles → NUMPY → Arange Function In Numpy
Arange Function In Numpy
Purpose
Syntax
- Start → This number specifies the starting number from which the sequence is going to start. This is optional if we specify the end parameter
- End → This number specifies the number where the sequence will end. This number is excluded from the sequence
- Step → This is the number by which the sequence gets incremented. This is optional. If this parameter is not specified, then the sequence gets incremented by 1
Example
import numpy as np
print(np.arange(0,10))
Output
Click to Enlarge