# NumPy array creation: arange() function

Rate this post

Today, We want to share with you arange in python.In this post we will show you linspace python, hear for python check if value in list we will give you demo and example for implement.In this post, we will learn about python script with an example.

## np.arange() | NumPy Arange Function in Python

```arange(start, stop, step, dtype)
```

Free Live Chat for Any Issue
Parameter Description
start `[Optional]` provide the start of the interval range.
stop provide end of the interval range.
step `[Optional]` the spacing between two adjacent values.
dtype `[Optional]` dtype is the type of output array.
Read Also:  fibonacci series in python

### np arange(): How to Use numpy arange() Function

Example 1:

```import numpy np
np.arange(1, 11)

//Reults:
array([ 1,  2,  3,  4,  5,  6,  7,  8,  9, 10])
```

Example 2:

```import numpy np
np.arange(1, 14, 4)

//Output

array([ 1,  5,  9, 13])
```

Example 3: NumPy.arange() method Example

```>>> import numpy as np
>>> np.arange(5)
array([0, 1, 2, 3, 4])
>>> np.arange(5.0)
array([ 0.,  1.,  2.,  3.,  4.])

```