Skip to content

Instantly share code, notes, and snippets.

@khayyamsaleem
Created August 25, 2017 22:46
Show Gist options
  • Save khayyamsaleem/82c9edb93714dba9d967bda1e7b74ddd to your computer and use it in GitHub Desktop.
Save khayyamsaleem/82c9edb93714dba9d967bda1e7b74ddd to your computer and use it in GitHub Desktop.
""" This program is a mad libs story and my name is Krystal it prompts the user for input and prints the entire mad libs story with the user's input in the right place
"""
print("Mad Libs is now starting")
name=raw_input("What is your main characters name?")
adjective_1=raw_input("What is your first adjective?")
adjective_2=raw_input("What is your second adjective?")
adjective_3=raw_input("What is your third adjective?")
verb_1=raw_input("What is your first verb?")
verb_2=raw_input("What is your second verb?")
verb_3=raw_input("What is your third verb?")
noun_1=raw_input("What is your first noun?")
noun_2=raw_input("What is your second noun?")
noun_3=raw_input("What is your third noun?")
noun_4=raw_input("What is your fourth noun?")
animal=raw_input("Input an animal")
food=raw_input("Input a food")
fruit=raw_input("Input a fruit")
number=int(raw_input("Input a number"))
superhero=raw_input("Input a superhero name")
country=raw_input("Input a country")
dessert=raw_input("Input a dessert")
year=int(raw_input("Input a year"))
STORY = "This morning I woke up and felt %s because %s was going to finally %s over the big %s %s. On the other side of the %s were many %ss protesting to keep %s in stores. The crowd began to %s to the rhythm of the %s, which made all of the %ss very %s. %s tried to %s into the sewers and found %s rats. Needing help, %s quickly called %s. %s appeared and saved %s by flying to %s and dropping %s into a puddle of %s. %s then fell asleep and woke up in the year %s, in a world where %ss ruled the world."
print STORY % (adjective_1, name, verb_1, adjective_2, noun_1, noun_2, animal, food, verb_2, noun_3, fruit, adjective_3, name, verb_3, number, name, superhero, superhero, name, country, name, dessert, name, year, noun_4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment