DEV Community

Discussion on: Essential Python 3 code for lists

Collapse
yorodm profile image
Yoandy Rodriguez Martinez

I use enumerate a lot so:

for index, element in enumerate(my_list):
    # Do whatever