Question: in python (35 Points) Write a function madlibs0 that takes in 4 parameters. A list of nouns, a list of verbs a list of adjectives

 in python (35 Points) Write a function madlibs0 that takes in

in python

(35 Points) Write a function madlibs0 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 3. up your own text templates. RESTART: C:/Users/azoko/Desktop The hungry girl ran at the father A guard looked at the dog and then shouted at the hungry guard RESTART: C:/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 lo?ked at the donkey and then shouted at the silly dog

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!