Answers for "how to count in a loop python"

1

how to count in a loop python

count=0
for item in list:
    print item
    count +=1
    if count % 10 == 0:
        print 'did ten'
Posted by: Guest on May-02-2021

Code answers related to "how to count in a loop python"

Python Answers by Framework

Browse Popular Code Answers by Language