I'm stuck in ps3. I've got the components to pass the test functions. But when I try to get the hand to play IDLE says:
raceback (most recent call last):
File "
You have no variable in the play_hand function called hand. I believe you want hand = deal_hand(n), not just deal_hand(n) (and, actually...for that matter, what is n?).
Thank you so much for your help! Yes, I have changed that so that hand is defined as the result of deal_hand. I used (n) instead of HAND_SIZE I should go through the entire program and switch that over. So, we have resolved the error. But now I have a problem with the update_hand function and the get_word_score part as well, since the score remains at zero and the keys whose values are zero are not being trimmed from the dictionary as I hoped they would be. I'll attach what I have at the moment. Thank you for your help.
Join our real-time social learning platform and learn together with your friends!