Skillshare intro to Python/Unit 5: Difference between revisions

imported>Jesstess
imported>Jesstess
Line 125:
To do this, use a <code>for</code> loop to go through each word in <code>valid_words</code>. For each word, use a counter to keep track of the score so far for the word. Then use another <code>for</code> loop to go through the word letter by letter; look up each letter in the <code>scores</code> dictionary and add the point value for that letter to the counter.
 
To check your work, use the <code>print</code> function to print each word in <code>valid_words</code> andas well as its Scrabble value.
 
<b>Step 4 resources</b>:
Anonymous user