Scrabble challenge: Difference between revisions

Content added Content deleted
Line 74: Line 74:


Handle the case where a
Handle the case where a
a user forgets to supply a rack; in this case, print an error message saying they need to supply some letters, and then exit the program using the <code>exit()</code> function. Make sure you are consistent about capitalization: if your scores dictionary is lowercase, the letters supplied by the user need to be converted to lowercase at some point before you compare them.
a user forgets to supply a rack; in this case, print an error message saying they need to supply some letters, and then exit the program using the <code>exit()</code> function. Make sure you are consistent about capitalization


<b>Step 2 resources</b>:
<b>Step 2 resources</b>: