Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the python 3 to solve this problem. Using list and loops. Don't use function. 1. Specification Write a program that allows two players to
Using the python 3 to solve this problem. Using list and loops. Don't use function.
1. Specification Write a program that allows two players to play hangman: First allow player 1 to type a 7 letter word - The program must ensure that each letter is a character. - The string entered must also be exactly 7 letters Keep askin the first user has met those requirements . Print a bunch of empty lines to hide the first user's word . Display the Gallows (see picture below) for the number of guesses they got wrong . Also display the letters they got correct and blanks for spaces they haven't gotten yet . Keep asking the second user for a letter to guess: The user must type a single alphabetic a-z letter, keep asking til they do, do NOT deduct a life for mis-typing. Continue to repeat until either they have guess all letters (no blanks) or they have used all 7 incorrect guesses... Example Execution Enter a 7 1etter ord thr33 Enter ? 7 1@tter word: blah Enter a 7 letter ord: mapping buneh of new-lines Hangnan" Enter a Letter blah Ent@r??@tter: 6 Enter a Letter a Enter a Lester thus Par Enter Lester d Word Thus Far: . Enter a tester: P Enter Leseer:LStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started