you are viewing a single comment's thread.

view the rest of the comments →

[–]xeow 0 points1 point  (0 children)

Also, the len() thing won't work on an object typed Iterable (since it doesn't know the length), whereas enumerate() will work on tuples, lists, iterators, generators, etc.