Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.