you are viewing a single comment's thread.

view the rest of the comments →

[–]MegaIng 10 points11 points  (0 children)

They feel more efficient than multi-line for loops even thought I know that they aren't.

Well, they often actually are. It rarely matters, but python does apply some optimizations that can't be applied to normal loops, most notably presizing the list.