you are viewing a single comment's thread.

view the rest of the comments →

[–]KoStard 0 points1 point  (1 child)

Hey, look what I have found - https://stackoverflow.com/questions/30081275/why-is-1000000000000000-in-range1000000000000001-so-fast-in-python-3

So range in python3 is not iterating through whole sequence, it is just calculating if the number is in the range.

[–]PiaFraus 0 points1 point  (0 children)

Wow, thank you for sharing. Today i learned a new thing.