Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

infinity range or infinity looping

import itertools
for i in itertools.count(start=1):
    if there_is_a_reason_to_break(i):
        break
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #infinity #range #infinity #looping
ADD COMMENT
Topic
Name
7+4 =