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
Talk to Files
Quiz: Read and Write Text Files
Challenge: Score Logger
Quiz: Build Your Own Commands
Choose Your Own Adventure
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Teach Your Code to Remember Lots of Things!
Quiz: Teach Your Code to Remember Lots of Things!
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
Talk to Files
Quiz: Read and Write Text Files
Challenge: Score Logger
Quiz: Build Your Own Commands
Choose Your Own Adventure
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Teach Your Code to Remember Lots of Things!
Quiz: Teach Your Code to Remember Lots of Things!