Re: range() is not the best way to check range?



Summercoolness@xxxxxxxxx wrote:
it seems that range() can be really slow:
....
if i in range (0, 10000):

This creates a 10,000-element list and sequentially searches it. Of
course that's gonna be slow.

.