Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

the 100th iteration in python next()

printcounter = 0

# Whatever a while loop is in Python
while (...):   
    ...
    if (printcounter == 1000000):
        print('Progress report...')
        printcounter = 0
    ...
    printcounter += 1
 
PREVIOUS NEXT
Tagged: #iteration #python
ADD COMMENT
Topic
Name
7+5 =