python range function in python return the sequence of numbers between the start integer value to the stop integer.
Syntax : -
range(stop) range(start, stop[, step])
Parameters For range() function in python:-
Range function takes the three arguments which is given below :-
- first one is a start point which define the starting point of range function.
- second one is stop point integer which help to tell the end point for the sequence.
- Step is a third one and it use to define the increment for the sequence of number.
Return value from range function in python: -
- range() function return the immutable sequence of number.
- In this function sequence of number starts form 0 to Stop-1.
- if the step argument is then it raise an Value Error.