In a Python for loop that iterates over a list we can write:
for
for item in list: print item
and it neatly goes through all t
Agree with Nick. Here is more elaborated code.
#count=0 for idx, item in enumerate(list): print item #count +=1 #if count % 10 == 0: if (idx+1) % 10 == 0: print 'did ten'
I have commented out the count variable in your code.