Simple hangman game using while and if-else loop does not iterate correctly
问题 I am trying to design a hungman game using simple while loop and if else statement. Rules of the game: 1.Random word is selected from a list of words 2.User is informed when the word is selected and asked to provide his/ her first guess 3.If the user's guess is correct, the letter is console and inform the user how many letters left The user will get only 5 lives to play the game. 1.import random 2.import string 3.def hungman(): 4.words = ["dog", "monkey", "key", "money", "honey"] 5.used