What is the range function in Python?
The range() is a built-in function available in Python. In simple terms, the range allows them to generate a series of numbers within a given interval. This function only works with the integers i.e. whole numbers.
Syntax of range() function:
range(start, stop, step)
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer