Scrabble
This is the program we have so far. Note that I made a function to return the word value.
Your Tasks
Your Tasks
- First find the maximum word value: max(word_values) (should be 44). Print a 'friendly' statement with this information:
The maximum word value {}.
- Find the first word that has that value (use index() for this). Print a 'friendly' statement with this information:
The first word with the value {} is {}.
- Loop through all the word_values to find all the indexes that have that same value, then find and print all the words that have that value, one per line.
- Prompt for a value (e.g., 13) then print all the words with that value.
- Prompt for a sentence then print the total scrabble value for the sentence. Make sure it disregards punctuation.