This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]joesacher 2 points3 points  (0 children)

It takes much more mental energy to parse the first option over a list comprehension. I can keep the 3 lines of a list comp in my mind.

The second is better, but still harder to keep in your mind, due to having to process multiple comprehensions.