Range in python returns series of numbers starting from 0 by default and increment by 1 default, stops before a specified number e.g
How to create list with Range in Python:
Syntax of range:
range(start, stop, step)
Start: If not mentioned it starts form zero.
Stop: Last element upto which range goes.
Step:how to step up or increment series by 1 or by 2 etc.
It is very useful and used with for loop.
First you have create an empty list a.After this you have write range function and assign it to b.
Now you have to use For loop in Python. Append element of b to list a as shown in image above.list will be created.