r/PythonLearning • u/Repulsive-Song-1594 • 3d ago
i am stuck with the range function
sorry but i am gonna crash out because of the range function i cant understand it well to use it this is driving me crazy any one could give me a video explaining everything i dont mind it being an hour long
8
Upvotes
View all comments
Show parent comment
1
u/ninhaomah 3d ago
???
what has this got to do with range ?
we are talking about this range() right ?
"The built-in range data type represents an immutable sequence of numbers, typically used for looping a specific number of times in for loops. It generates arithmetic progressions and is memory efficient as it computes the numbers lazily:"
https://realpython.com/ref/builtin-types/range/
Examples from the above site :