"""
Mad Libs Game
This program asks the user for a series of words (like nouns, adjectives, etc.)
and then inserts those words into a silly story to create a fun result!
"""

# The story with placeholders
STORY = """
This morning %s woke up feeling %s. 
'It is going to be a %s day!' Outside, a bunch of %s were protesting to keep %s in stores. 
They began to %s to the rhythm of the %s, which made all the %s very %s. 
Concerned, %s texted %s, who flew %s to %s and dropped %s in a puddle of frozen %s. 
%s woke up in the year %s, in a world where %s ruled the world.
"""

# Inform the user
print("Welcome to Mad Libs! Let's get started...")

# Get user input
name = input("Enter a name: ")

adj1 = input("Enter the first adjective: ")
adj2 = input("Enter the second adjective: ")
adj3 = input("Enter the third adjective: ")

verb = input("Enter a verb: ")

noun1 = input("Enter the first noun: ")
noun2 = input("Enter the second noun: ")

animal = input("Enter an animal: ")
food = input("Enter a food: ")
fruit = input("Enter a fruit: ")
superhero = input("Enter a superhero: ")
country = input("Enter a country: ")
dessert = input("Enter a dessert: ")
year = input("Enter a year: ")

# Print the completed story with string formatting
print(STORY % (name, adj1, adj2, animal, food, verb, noun1, fruit, adj3, name, superhero, name, country, name, dessert, name, year, noun2))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: