Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 2, 2017 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/088bc0637af0c9f61ef376f3cf1c18ed to your computer and use it in GitHub Desktop.
Save codecademydev/088bc0637af0c9f61ef376f3cf1c18ed to your computer and use it in GitHub Desktop.
Codecademy export
"""This program will create a user-operated mad-libs that will be sooper fun."""
print "Mad Libs has started"
name = raw_input("Enter a name: ")
adjective_a = raw_input("Enter an adjective: ")
adjective_b = raw_input("Enter an adjective: ")
adjective_c = raw_input("Enter an adjective: ")
verb_a = raw_input("Enter a verb: ")
verb_b = raw_input("Enter a verb: ")
verb_c = raw_input("Enter a verb: ")
noun_a = raw_input("Enter a noun: ")
noun_b = raw_input("Enter a noun: ")
noun_c = raw_input("Enter a noun: ")
noun_d = raw_input("Enter a noun: ")
animal = raw_input("Enter an animal: ")
food = raw_input("Enter a food: ")
fruit = raw_input("Enter a fruit: ")
number = raw_input("Enter a number: ")
superhero_name = raw_input("Enter a superhero name: ")
country = raw_input("Enter a country: ")
dessert = raw_input("Enter a dessert: ")
year = raw_input("Enter a year: ")
#The template for the story
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_a, name, verb_a, adjective_b, noun_a, noun_b, animal, food, verb_b, noun_c, fruit, adjective_c, name, verb_c, number, name, superhero_name, superhero_name, name, country, name, dessert, name, year, noun_d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment