Day 34 - Python Madlibs
Day 34 - Python Madlibs
Wednesday, March 4, 2026
Today's Objectives
- Finish the Madlibs activity from yesterday.
Warmup: Edpuzzle Video
Login to Clever.com and go to Edublocks. Watch today’s video there.
Checkpoint: I have complete the Edublocks video.
Work Session: Finish Madlibs
Copy and paste your work from yesterday into Edublocks and finish your work. Make sure you meet the requirements below.
The Madlibs Spec
Your program should ask for at least 8 words from the user. Here are some of the examples of words you might ask the user to fill in.
- Enter a person’s name:
- Enter a color:
- Enter car|bus|plane|train:
- Enter an adjective for food:
- Enter the name of a building:
- Enter a noun:
An Example
Don’t copy this. This is only an example. It doesn’t even meet the requirements above. You need to ask for eight words.
name = input("Enter a person's name: ")
place = input("Enter a place: ")
color = input("Enter a color: ")
adjective1 = input("Enter an adjective for a food: ")
vehicle = input("Enter car|train|bus: ")
adjective2 = input("Enter an adjective for a food: ")
print("")
print(f"{name} went to {place} and bought a {color} cake")
print(f"{name} thought the cake looked {adjective1}.")
print(f"They went home in their {vehicle} and ate the cake. It was {adjective2}.")When the person plays this Madlib, the following happens.
Assume the person answered with Simon, St. Simons, blue, yummy, train, and sweet.
Enter a person's name: Simon
Enter a place: St. Simons
Enter a color: blue
Enter an adjective for a food: yummy
Enter car|train|bus: train
Enter an adjective for a food: sweet
Simon went to St. Simons and bought a blue cake
Simon thought the cake looked yummy.
They went home in their train and ate the cake. It was sweet.Closing: Turn it In
Copy and paste your final code into a the Discussion Post on CTLS. Then try out two of your classmates’ stories. Leave a simple comment like “Nice job” on your favorite two stories.
Last updated on