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

python program please help me with this

python program please help me with this def play_game (word_list): "Allow the

def play_game (word_list): "Allow the user to play an arbitrary number of hands. 1) Asks the user to input 'n' or 'r' or 'e' *If the user inputs'n', play a new (random) hand *If the user inputs 'r, play the last hand again *If the user inputs'e, exit the game. *If the user inputs anything else, ask them again 2) Ask the user to input a'u' or a 'c' If the user inputs 'u', let the user play the game as before using play_hand. * If the user inputs ' let the computer play the game using comp-play-hand (created above). If the user inputs anything else, ask them again 3) After the computer or user has played the hand, repeat from step 1 word_list: list (string) # TO DO # Build data structures used for entire session and play game if -name-- -main--': =- word_list-load_words ) play_game(word_list)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!