Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do i do enter_guess, get_word and hangman? I'm confued! [20 marks] Write a function named enter_goese. hat will take ne parameters. The function asks

image text in transcribed how do i do enter_guess, get_word and hangman? I'm confued!
[20 marks] Write a function named enter_goese. hat will take ne parameters. The function asks the user to enter a single lener and errer checks to onsure that exactly 1 alphabotic character is entered. The single kifer will be returned. For example: in pythonswarno faler a lattion: 1 Plases anter 1 and ofly 1 Tetere fo [10 marks] Write a function named get_ word that takes a lest of words and randomly returns ane word. For example: wep terjert o grt mordifeords ? hip grunc(herget) stallent. [60 marks] Write a function named hanynan that tabes a string (a target wort) as a parameter. This function displays the initial gstows and the number of underscores in the target word. As long as the target woed has not bewn guessed or the user has not incorrectly guessed 7 letters, get a letter from the user (call enter_guess) if the letter is not in the target word, increment a counter that keeps track of the number of incorrect guesses and add con more plece is the gallows. Ir the letter is in the target word, replace the underscore in the iocution of the letur with the letter. The display the underscores (possibly including lefter) and the leters guessed. Once the target woed has been guossed or the user has inconecty guessed 7 letters, display the results. See screenshots at end. [10 marks] Wrte a function named main that tahes no parameters. This function cals get_words to get a target word and then vses this to call the hangman function. This function returrs Mrone. This is how it should look at the end

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

Technology. Refer to Case

Answered: 1 week ago