Question: python program please help me with this def play_game (word_list): Allow the user to play an arbitrary number of hands. * Asks the user to
python program please help me with this

def play_game (word_list): Allow the user to play an arbitrary number of hands. * Asks the user to input 'n' or 'r or 'e If the user inputs 'n', let the user play a new (random) hand. When done playing the hand, ask the 'n' or 'e' question again If the user inputs 'r', let the user play the last hand again. If the user inputs 'e', exit the game. If the user inputs anything else, ask them again. #TO DO. .. # Build data structures used for entire session and play game word_list -load_words () play_game (word_list) def play_game (word_list): Allow the user to play an arbitrary number of hands. * Asks the user to input 'n' or 'r or 'e If the user inputs 'n', let the user play a new (random) hand. When done playing the hand, ask the 'n' or 'e' question again If the user inputs 'r', let the user play the last hand again. If the user inputs 'e', exit the game. If the user inputs anything else, ask them again. #TO DO. .. # Build data structures used for entire session and play game word_list -load_words () play_game (word_list)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
