X-Git-Url: https://projects.mako.cc/source/wordplay-cdsw-solutions/blobdiff_plain/884ad8e21ea1ea9d1dd411b2a503d0dff4294c59..HEAD:/solution_4.py?ds=sidebyside diff --git a/solution_4.py b/solution_4.py index c1e72ae..ee71231 100644 --- a/solution_4.py +++ b/solution_4.py @@ -1,13 +1,7 @@ import scrabble - -# Find words that match a**e*y. - - +# Find words that match a**e*y. for word in scrabble.wordlist: - if len(word) == 6 and word[0] == 'a' and word[3] == 'e' and word[5] == 'y': - print word - - - + if len(word) == 6 and word[0] == 'a' and word[3] == 'e' and word[5] == 'y': + print(word)