I use enumerate a lot so:
for index, element in enumerate(my_list):
# Do whatever
mylist.append( "abc" )
Why do you have inconsistent formatting? Is there some rule that I cannot figure out or simply an oversight?
Hopefully I have them all fixed now. I was copy-and-pasting back-and-forth to the interactive editor, thus messed up the style sometimes.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.