Last active
December 30, 2015 02:08
-
-
Save audreyfeldroy/7760325 to your computer and use it in GitHub Desktop.
Santa's most useful Python code snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [person for person in world_population | |
| if is_nice(person) and is_nice(person)] |
Author
Now updated thanks to @IanWitham. I guess I assumed Santa would want to lazily evaluate each person, but hey, with all those elves he has all the processing power in the world.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed that for you: https://gist.github.com/IanWitham/7762067