Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python homework help Project 2; Hello Word You will be graded on each of the steps below. Foc this project, you do not need to
python homework help
Project 2; Hello Word You will be graded on each of the steps below. Foc this project, you do not need to include error handling: Assume the user always inputs a string as a guess - Assume the letter/ word is always lowercase You can use any editor of your choosing, but your final submission must be a py, pyi, or pyw file which can be run by me le.g. milleriess_project2.py). lostructions In Python create a simple word guessing game where a player must guess a word, chosen at random from a pre-defined list of five (5) possible words. The game should display a hint about the word once it is chosen. The plaver then has five (5) attempts to guess at letters in the word, with the game stating yes, the letter exists in the word or no, it does not. After a maximum of five guesses at letters, the player must attempt to guess the word. The player can also guess the word at any point by entering the kerword "guess?. It the player guesses the correct word they win the game, otherwise they. lose. Specifically, your game must 1. Randomly choose a word from a pre-defined list of five (5) possible words, unknown to the plaver. Sample list: [' eat', 'dog', 'five', 'dark', 'eloudy'1 2. Disolay a hint whout the chosen word lie if the word is "cat" the game could say something like "Hint: Smull four-legged friend known for their love of fish" 3. The player tos five attempts to guess letters in the word. 4. The game should indicate whether the letter exists in the word or not 0.e. "Ves. there is at least one 'a' in the word? 5. After five attempts to guess letters, OR it the player enters the keyword guess, the player must guess the word 6. If the planer guesses the correct word, the game should indicate they we won. Otherwise, the game should indicate they hwe lost, and state whut the otighal word wes. 7. Once the came ends, ask the player it they would lhe to play again If yes, choose a new random word and start over. Uf no, termingte the program. Example Run (Rondom Word Chosen eat) Cane: Helcane ta lie2lo hord Gane: Your cansom wora has been chask. aint, snakt tour-legged teriend khown tor their love of tilih. Dlayeri 0 Step 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