0% found this document useful (0 votes)
2 views

Script

In this video, the creator demonstrates how to make a Mad Libs game using Python, explaining the concept of the game and its structure. The code prompts players for various words and incorporates them into a humorous story. Viewers are encouraged to try creating their own stories and to subscribe for more coding content.

Uploaded by

mithumpansilu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Script

In this video, the creator demonstrates how to make a Mad Libs game using Python, explaining the concept of the game and its structure. The code prompts players for various words and incorporates them into a humorous story. Viewers are encouraged to try creating their own stories and to subscribe for more coding content.

Uploaded by

mithumpansilu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Hi everyone! Welcome back to my YouTube channel!

I tell you in previous video, I


will make a Mad libs game on this video! In today's video, we're making a super fun
Mad Libs game using Python. If you don't know what Mad Libs is — it's a word game
where you ask someone for random words, then put them into a funny story. Let's
jump into it!

{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

print("Welcome to the Mad Libs Game!")


print("Please enter the following words:")

noun = input("Noun: ")


verb = input("Verb: ")
adjective = input("Adjective: ")
place = input("Place: ")
animal = input("Animal: ")

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}

Now let's use these words in a fun little story.

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}

Now you can play as many times as you want!

{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}

You might also like