how to count in a loop python

Solutions on MaxInterview for how to count in a loop python by the best coders in the world

showing results for - "how to count in a loop python"
Doug
08 Jun 2016
1count=0
2for item in list:
3    print item
4    count +=1
5    if count % 10 == 0:
6        print 'did ten'