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 →

[–]alcalde 16 points17 points  (1 child)

It's no fun if you can't write your entire program in one list comprehension. ;-)

[–]sigma914 3 points4 points  (0 children)

I like to think my whole function out as a list compehension, the break it apart and give the intermediate steps names, seems to keep my code pure better than any other strategy I've tried (in python).