Range Function
Python Range() Function
- The Python range is a built-in function in Python which is very useful to generate sequences of numbers in the form of a list.
- The given end point is never part of the generated list.
- The range() function has two sets of parameters, as follows:
- All parameters should be integers.
- All parameters may be positive or negative
- Number of integers is to generate, beginning from zero. eg. range(4) == [0, 1, 2,3].