We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 3. Word Values

236 out of 255 users completed this Bite ...
Will you be Pythonista #237 to crack this Bite?
Average Bite difficulty 1-10 rating: 3.93
» You can do it! 😌

Calculate the dictionary word that would have the most value in Scrabble.

There are 3 tasks to complete for this Bite:

  • First write a function to read in dictionary.txt (DICTIONARY constant) and return a list of words.
  • Second write a function that receives a word and calculates its value. Use the scores stored in LETTER_SCORES.
  • With these two pieces in place, write a third function that takes a list of words and returns the word with the highest value.

Look at the TESTS tab to see what your code needs to pass. Enjoy!

Github login button