Challenge: Mad Lib Generator
Let’s build a simple Mad Lib generator using a function.
Your task is to:
Create a function named
madlibThe function should accept three words:
a noun
a verb
an adjective
Inside the function, print a sentence that uses all three words.
For example, your program should be able to produce a sentence like:
“The silly cat decided to dance all day.”
Similar Problems
Challenge: Class Grades
Python File I/O: Read, Write, and Append Text Files
Quiz: Read and Write Text Files
Challenge: Score Logger
Quiz: Functions
Choose Your Own Adventure
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Python Dictionaries: Store and Retrieve Key-Value Pairs
Quiz: Dictionaries
Challenge: Mad Lib Generator
Let’s build a simple Mad Lib generator using a function.
Your task is to:
Create a function named
madlibThe function should accept three words:
a noun
a verb
an adjective
Inside the function, print a sentence that uses all three words.
For example, your program should be able to produce a sentence like:
“The silly cat decided to dance all day.”
Similar Problems
Challenge: Class Grades
Python File I/O: Read, Write, and Append Text Files
Quiz: Read and Write Text Files
Challenge: Score Logger
Quiz: Functions
Choose Your Own Adventure
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Python Dictionaries: Store and Retrieve Key-Value Pairs
Quiz: Dictionaries