Editing Wordplay

From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
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?
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 engaging in a range of string manipulation tasks
Use Python to answer questions like this instantly while practicing manipulating data from a file and regular expressions.


==Setup==
==Setup==


Download the following file: https://github.com/CommunityDataScienceCollective/wordplay-cdsw/archive/refs/heads/master.zip
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.
Once you have downloaded the file, extract the contents of the file into a folder on your desktop.


Open the file <code>wordplay_worked_examples.ipynb</code> as a Jupyter notebook and run the first cell to make sure that it works.
Open the file "Worldplay Examples.ipynb" as a Jupyter notebook and run the first cell to make sure that it works.
<!-- ==Handout==
 
==Handout==


[[Wordplay handout]]: goals and cheat sheet.
[[Wordplay handout]]: goals and cheat sheet.
-->
 
==Goals==
==Goals==


* Have fun using Python to cheat at Scrabble and crosswords.
* Have fun using Python to cheat at Scrabble and crosswords.
* Practice using lists, <code>for</code> loops, and basical tools for manipulating and asking questions about strings.
* Practice using lists and manipulating strings.


==Ideas for exercises==
==Ideas for exercises==
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)