Wordplay



You are filling out a crossword and need a word that fits the pattern E*G****R. What are your options? How many words have all 5 vowels in order? What's the only common English word that ends in 'mt'? What are the most possible points you can score with an English word in Scrabble?

Use Python to answer questions like this instantly while practicing manipulating data from a file and regular expressions.

Setup
Download the following file: https://jeremydfoote.com/teaching/2020-summer/intro_to_programming/wordplay.zip

Once you have downloaded the file, extract the contents of the file into a folder on your desktop.

Open the file "Worldplay Examples.ipynb" as a Jupyter notebook and run the first cell to make sure that it works.

Handout
Wordplay handout: goals and cheat sheet.

Goals

 * Have fun using Python to cheat at Scrabble and crosswords.
 * Practice using lists and manipulating strings.

Ideas for exercises

 * Find and print the words that start with "ee".
 * Find and print the words that end in "mt". How about "gry"?
 * Find and print the longest word that has no vowels.
 * Find an print the words that contain 4 or more 'l's.
 * Find and print the words that have all 5 vowels in alphabetical order.
 * Look for other interesting properties of English words in pages like this quiz asking to find English words with unusual properties. How many can you solve with Python?