Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created January 27, 2020 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/328eb30a5e8d06999d466d921ef7d684 to your computer and use it in GitHub Desktop.
Save kunigami/328eb30a5e8d06999d466d921ef7d684 to your computer and use it in GitHub Desktop.
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