Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count in a loop python

count=0
for item in list:
    print item
    count +=1
    if count % 10 == 0:
        print 'did ten'
 
PREVIOUS NEXT
Tagged: #count #loop #python
ADD COMMENT
Topic
Name
8+2 =