Step 1: Write the Silly Story ๐
You're about to build a Mad Libs Machine โ a program that begs people for weird words and then drops them into a story that makes no sense. ๐คช
Every Mad Libs starts with a story that has holes in it. In Python, those holes are just variables:
weather = "spaghetti rain"
print(f"Tomorrow we expect {weather} all afternoon.")
The magic part: change the variable at the top, run again, and the whole story changes. The story stays the same โ the silliness swaps out.
Your mission
- Make three variables named
animal,foodandplaceโ fill them with the silliest things you can think of - Print a story that is at least 3 lines long
- Use all three variables somewhere in the story
- Run it, then change one variable and run it again โ watch the story change!
Your code
Press โถ Run to see what your code does!