I have this kind of code:
count = 0
for line in lines:
#do something with line
#do something more with line
#finish doing that thing with line
count = count + 1
if count % 10000 == 0:
print count
Is this the right way of maintaining count-variable in python? Can I make it look better?