Python Range
Range function
The range(n) function return the range for the given argument. The value of the range begin with 0 and ends with the n-1 value. You can use list() function to show all values of the range.
Examples
Example 1
>>> range(5) range(0, 5) >>> list(range(5)) [0, 1, 2, 3, 4] >>>