Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python2.7 3. (35 Points) Write a function madlibs() that takes in 4 parameters. A list of nouns, a list of verbs a list of adjectives

python2.7
3. (35 Points) Write a function madlibs() that takes in 4 parameters. A list of nouns, a list of verbs a list of adjectives and some text. The text will have NNN for a place to inject a random noun from the list, VVV to inject a random verb from the list and AAA to inject a random adjective from the list. The function will print the text with the values replaced. Here is some sample output. HINT: Break the text up into individual strings. Here are three sample runs of the lists and sentences found in the template. Feel free to edit the lists and make up your own text templates.
image text in transcribed
The hungry girl ran at the father A guard looked at the dog and then shouted at the hungry guard --RESTART: ?:/users/azoko/ Desktop/ The hungry donkey sang at the teacher A teacher looked at the dog and then sang at the stunned father RESTART : C:/Users/azoko/ Desktop/. == The stunned dog flew at the boy A policeman looked at the donkey and then shouted at the silly dog

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

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

recognise typical interviewer errors and explain how to avoid them

Answered: 1 week ago

Question

identify and evaluate a range of recruitment and selection methods

Answered: 1 week ago

Question

understand the role of competencies and a competency framework

Answered: 1 week ago