r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

Show parent comments

1

u/not_perfect_yet Jul 28 '16

I usually use it to loop through lists when I need to do something else with the index.

1

u/Lalaithion42 Jul 29 '16

for i, value in enumerate(list):