+ 2
Can python ranges reach infinity? Or what's the highest range?
Just a question...
2 Antworten
+ 2
Maybe not.
I tried:
from math import inf
range(inf)
But it didn't work.
+ 2
Range takes int as arguments, inf is float.
You can either use a while loop, incrementing your value as long as you need it, or write a generator function for that.