if i need a for loop in python
for i in range(1,42):
print "spam"
but don't use "i" for anything that pylint complains about an unused variable. How should I handle this? I know you can do this:
for dummy_index in range(1,42):
print "spam"
but to me it seems rather strange, is there a better way?
I'm new to python, so forgive me if I miss something obvious.
source
share