Question: Please create a code that matches the sample output using Python 3.8. This is an example of the game Hangman, and requires a word that

 Please create a code that matches the sample output using Python

Please create a code that matches the sample output using Python 3.8. This is an example of the game Hangman, and requires a word that the user must guess.

  • Output the appropriate number of dashes and spaces to represent the phrase (make sure its clear how many letters are in each word and how many words there are)
  • Continuously read guesses of a letter from the user and fill in the corresponding blanks if the letter is in the word, otherwise, report that the user has made an incorrect guess.
  • Each turn you will display the phrase as dashes but with any already guessed letters filled in, as well as which letters have been incorrectly guessed so far and how many guesses the user has remaining.
  • Your program should allow the user to make a total of 10 incorrect guesses.
  • You MUST use at least 3 string methods or operators in a useful manner (several examples that I used are given in the notes below). If you wish to use lists in your project that is fine, as long as you meet this requirement.

Chances Remaining 6 Missed Letters/Digits : None Your guess (letters only): e Chances Remaining 6 Missed Letters/Digits : None Your guess (letters only): b Chances Remaining : 6 Missed Letters/Digits : None e - Bee Your guess (letters only): 3 Not a valid character. Please enter a letter Your guess (letters only): b You have already tried this letter or digit. Guess again! Your guess (letters only): z This character is not present in the name. Chances Remaining 5 Missed Letters/Digits : Z Your guess (letters only): i This character is not present in the name. Chances Remaining 4 Missed Letters/Digits : zi : - Bee Your guess (letters only): | Chances Remaining 6 Missed Letters/Digits : None Your guess (letters only): e Chances Remaining 6 Missed Letters/Digits : None Your guess (letters only): b Chances Remaining : 6 Missed Letters/Digits : None e - Bee Your guess (letters only): 3 Not a valid character. Please enter a letter Your guess (letters only): b You have already tried this letter or digit. Guess again! Your guess (letters only): z This character is not present in the name. Chances Remaining 5 Missed Letters/Digits : Z Your guess (letters only): i This character is not present in the name. Chances Remaining 4 Missed Letters/Digits : zi : - Bee Your guess (letters only): |

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!