Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 7
    "readability counts" The speed difference in the small <1000 range is insignificant. It is 3% slower on an already small time metric.
    – user4805123
    Commented Mar 4, 2017 at 0:08
  • How about updating the answer to Python 3?
    – Georgy
    Commented May 22, 2019 at 14:20
  • 2
    @Georgy makes sense, on python 3.7 enumerate is total winner :) Commented Jun 16, 2020 at 9:22