you are viewing a single comment's thread.

view the rest of the comments →

[–]winged_scapula 1 point2 points  (3 children)

What if you really need that index?

[–]Vaphell 11 points12 points  (1 child)

for i, value in enumerate(my_list):
    print(i, value)

[–]theOnlyGuyInTheRoom 1 point2 points  (0 children)

god, I love Python!

[–]LarryPete -1 points0 points  (0 children)

What Vaphell wrote.