Syntax-
range(start,end,gap)
- Here gap is optional argument and default value of start and gap is 0 and 1 respectively.
Example-
range(3) will return 0 to 2
range(2,6) will return 2 to 5
range(2,9,2) will return 2,4,6,8