Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python code 1. Specification Write a program that allows two players to play hangman: First allow player 1 to type a 7 letter word The

Python code image text in transcribed
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 asking until 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 sccond user for a letter to guess: - The user must type a single alphabetica-z letter, keep asking 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago