Script
Script
{CUT}
Alright, I've opened up my Python editor. First, let's create the basic structure
of our Mad Libs game. Let's start by asking the player for some words.
CODE ===
# Mad Libs Game
We’re asking the player for a noun, a verb, an adjective, a place, and an animal.
You can add more if you want!
{CUT}
CODE ===
print("\nHere's your story!")
print("-------------------------")
print(f"One day, a {adjective} {animal} was walking through the {place}.")
print(f"It decided to {verb} next to a {noun}, and everyone laughed!")
print("-------------------------")
When we run this, it will create a funny story using the words the player typed!
Let's run the program and test it out. I’ll type some random words...
Look at that — a dancing monkey next to a banana! See how silly and fun this can
be?
{CUT}
{CUT}
And that’s it! You've just made a full Mad Libs game using Python. Try making your
own stories and changing the words. If you liked this video, hit the like button
and subscribe to TD Brain for more fun coding videos. See you next time!
Good Bye!
{END}