+ 1
Can someone explain Range in python?
Complete explanation please
3 odpowiedzi
+ 4
The range function creates a sequential list of numbers.
The code below generates a list containing all of the integers, up to 10. If range is called with one argument, it produces an object with values from 0 to that argument.
If it is called with two arguments, it produces values from the first to the second. range can have a third argument, which determines the interval of the sequence produced. This third argument must be an integer.
+ 1
You can learn from here about range.
https://www.pythoncentral.io/pythons-range-function-explained/
0
Thanks alot Maninder $ingh