1.1.0 Mad Libs Introduction
Video
1.1.0 Mad Libs Introduction
For your first project you'll make a program that allows you to create Mad Libs! Watch the video below to see what your finished program will look like.
What You'll Build
Your program will:
- Ask the user for different words (color, country, food, celebrity, etc.)
- Use those words to create a fun story
- Print out the completed Mad Lib!
Example output:
Australia has run out of avocados and needs your help.
Name Mark donated 77 avocados.
What will you do?
Your story can have any text you wish - be creative!
What You'll Learn
In this project you will learn how to:
- Produce output using
print() - Combine strings to produce bigger strings
- Store values in variables
- Get input from your user using
input()
Try It Out
Here's a quick example to get you started. Try running it and entering your own words:
color = input("Enter a color: ") country = input("Enter a country: ") food = input("Enter a plural food: ") print(color, "alert!") print(country, "has run out of", food, "and needs your help.")
After you watch the video, click next to continue to the lessons!
Loading Python environment...