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 12: |
Line 12: |
| # You need a word that matches "a*ey" (here "*" means any letter). Are there any words that match? | | # You need a word that matches "a*ey" (here "*" means any letter). Are there any words that match? |
| # Print every other word that matches the condition in (1) above. | | # Print every other word that matches the condition in (1) above. |
| # Find at least one word that uses all five vowels in order. | | # Find the longest string where no character is used > 1 time. |
| # For every letter, print the word that uses that character the most. (Hint: use two nested for loops. First one is
| |
|
| |
| for letter in 'abcdefghijklmnopqrstuvwxyz':
| |
| # do something
| |
|
| |
|
| # (Challenge) Find the longest string where no character is used > 1 time. (Hint: look up counters)
| | Now we're going to start finding points! You can use scrabble.scores to get the scores for every letter. But we're going to cheat: assume you have all the letters. |
| | |
| <!-- Now we're going to start finding points! You can use scrabble.scores to get the scores for every letter. But we're going to cheat: assume you have all the letters.
| |
|
| |
|
| # What is the most valuable word in the dictionary, and how much is it worth? | | # What is the most valuable word in the dictionary, and how much is it worth? |
Line 32: |
Line 26: |
| d: decitizenizing, 36 | | d: decitizenizing, 36 |
| ..... | | ..... |
| -->
| |
|
| |
| == Finale! ==
| |
|
| |
| Use Python to find one other interesting fact about the data set. Examples (that you can't use) might be:
| |
| * One of the words that is tied for the most vowels is aquifoliaceous
| |
| * The word with the highest consonant to vowel ratio is sulphhydryls
| |
|
| |
| == Extra assignments (if you want) ==
| |
|
| |
| This is totally optional. [https://www.codecademy.com/en/courses/python-beginner-en-kSQwt/1/1 Code Academy] does have more exercises that cover lists and loops (starting on question 9) and I would encourage you to do them if you feel that extra practice would help.
| |