X-Git-Url: https://projects.mako.cc/source/wordplay-cdsw-solutions/blobdiff_plain/7b538ea99568eb4511b2b92e3f55193796017866..d928fcd3abb683b79b79d8821998aa19025cbed5:/idea_2.py diff --git a/idea_2.py b/idea_2.py new file mode 100644 index 0000000..2bf1d7d --- /dev/null +++ b/idea_2.py @@ -0,0 +1,10 @@ +# 2. Find and print the words that end in "mt". How about "gry"? + +import scrabble + +for word in scrabble.wordlist: + if word[-2:] == "mt": + print(word) + elif word[-3:] == "gry": + print(word) +