Use PYTHON to create a HANGMAN game:    Your hangman game should be broken into appropriate functions, contain a main function, and do the following:   1.The program should randomly select a word from the list: kangaroo,capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra 2. Repeatedly prompt the user to guess a letter. 3.Validate the input 4. All guessed letters should be stored in a two-dimensional list (from problem 2). If the number of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times. 5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores 6. A hangman reflecting the number of incorrect guesses should be printed 7. If all the letters in the word are guessed, then the user wins. If hangman number of incorrect guesses reaches 6, then the user loses

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question
Use PYTHON to create a HANGMAN game: 
 
Your hangman game should be broken into appropriate functions, contain a main function, and do the following:
 
1.The program should randomly select a word from the list: kangaroo,capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra
2. Repeatedly prompt the user to guess a letter.
3.Validate the input
4. All guessed letters should be stored in a two-dimensional list (from problem 2). If the number of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times.
5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores
6. A hangman reflecting the number of incorrect guesses should be printed
7. If all the letters in the word are guessed, then the user wins. If hangman number of incorrect guesses reaches 6, then the user loses
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr