Forked from ViktorStiskala/gist:d9158f027b294f18cca6
Last active
August 29, 2015 14:01
-
-
Save messa/47e58593113f52d24604 to your computer and use it in GitHub Desktop.
This file contains 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
is_even = lambda n: n % 2 == 0 | |
even_numbers = filter(is_even, range(10**100)) | |
with open('even_numbers.txt', 'w') as f: | |
for number in even_numbers: | |
f.write('{}\n'.format(number)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment