Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Hangman Hangman game in Python that does the following: 1.Tells the users to enter a number from 1 to 5 2.The user enters the

Python Hangman

Hangman game in Python that does the following:

1.Tells the users to enter a number from 1 to 5

2.The user enters the value -1 and tell the users "Goodbye" and exit the game

3.If the person enters anything else but -1 and a number from 1-5, ask the user the question again until a valid number is entered or the number -1

4.When the user enters a valid number present the user with the right clue and ask the user to solve the word

5. If the user answers correctly begin the process all over

6.It the user answers incorrectly give the user the first letter of the word and ask to guess again, repeat process until the user enters the correct answer or until the user is presented with all the letters.

This project needs full functionally

Project must accept value without a trace-back errors

errors must be handled and all values the user inputs must all be managed.

Project must use functions for any part of repetitive processes

Project must contain at least (5) methods, one while loop, one for loop, at least one set of if statements, at least one set of if-elif-else statements, a try-except block, at least one break statement, at least two continue statement and one dictionary with at least (5) clue/answer pairs. user must always be presented with the current letter for any wrong answer. If the letter is the first or last letter, the user should be told that. Once the game begins, it should only end by the user entering the value "-1" when prompted with that option. . All values must have variables.

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

In what ways do organisations possess knowledge?

Answered: 1 week ago