LearnPy Hub
← NumPy problems
Easy

arange

Read start, stop and step and print np.arange(start, stop, step).tolist().

Input

Three integers.

Output

A list.

Sample 1

Input
0 10 2
Output
[0, 2, 4, 6, 8]

Sample 2

Input
5 0 -1
Output
[5, 4, 3, 2, 1]
solution.py
Output appears here
arange · Python practice problem · LearnPy Hub