Created
January 27, 2020 06:23
-
-
Save kunigami/328eb30a5e8d06999d466d921ef7d684 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
def get_words_and_filter_and_print(lines): | |
f = open('/usr/share/dict/words', 'r') | |
for line in f: | |
if (line[-3:] == 'ion'): | |
print(line) | |
get_words_and_filter_and_print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment