reworked these examples a bit based on feedback in class
[wordplay-cdsw-solutions] / idea_2.py
1 # 2. Find and print the words that end in "mt". How about "gry"?
2
3 import scrabble
4
5 for word in scrabble.wordlist:
6     if word[-2:] == "mt":
7         print(word)
8     elif word[-3:] == "gry":
9         print(word)
10

Benjamin Mako Hill || Want to submit a patch?