Question: in python code please Task 4: Mad Libs-Short Version In the word game Mad Libs, people are asked to provide parts of speech such as

 in python code please Task 4: Mad Libs-Short Version In the

word game Mad Libs, people are asked to provide parts of speech

in python code please

Task 4: Mad Libs-Short Version In the word game Mad Libs, people are asked to provide parts of speech such as nouns, verbs, adverbs, or adjectives. These words are used to fill in the blanks of a template or to replace the same parts of speech in a sentence. In this task you're going to write a program to demonstrate how the game works for a single sentence. Consider this sentence from Ready Player One by Ernest Cline: A lich was an undead creature, usually an incredibly powerful wizard or king who had employed dark magic to bind his intellect to his own reanimated corpse, thus achieving a perverted form of immortality. Write a program that will do the following Prompt the user for one verb, four nouns, and three adjectives. Print the sentence above but with words replaced as follows: A [noun] was an undead [noun], usually an incredibly powerful [noun] or king who had employed [adjective] magic to [verb] his [noun] to his own [adjective] corpse, thus achieving a [adjective] form of immortality. Your program should have three functions and use function calls as appropriate. It should end with a call to main (). Note that the main() function doesn't require a return statement because the main) call doesn't have a body or a parameter. Include the f ollowing functions: .get-sent-part : Prompts user for part of speech; called multiple times from main) build.sentence ): Uses string concatenation, i.e., combining string using the plus sign, as appropriate to build the sentence from the user's words and the sentence words main): Calls all the functions as appropriate and prints the Mad Lib sentence. Don't forget to assign names to function calls that require returned values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!