Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This program generates passages that are generated in mad-lib format
- Author: Erik
- """
- from datetime import datetime
- now = datetime.now()
- # The template for the story
- STORY = "This morning %s woke up feeling %s. 'It is going to be a %s day!' Outside, a bunch of %ss were protesting to keep %s in stores. They began to _ to the rhythm of the %s, which made all the %ss 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 %ss ruled the world."
- print "Hello, welcome to Mad Libs, we're starting!"
- name = raw_input("Please, state your name:")
- adjective_1 = raw_input("Please, give us the first adjective: ")
- adjective_2 = raw_input("Please, give us the second adjective: ")
- adjective_3 = raw_input("Please, give us the third adjective: ")
- verb_1 = raw_input("Please, give us the first verb: ")
- noun_1 = raw_input("Please, give us the first noun: ")
- noun_2 = raw_input("Please, give us the second noun: ")
- animal_1 = raw_input("State an animal: ")
- food_1 = raw_input("State a food: ")
- fruit_1 = raw_input("State a fruit: ")
- superhero_1 = raw_input("State a superhero: ")
- country_1 = raw_input("State a country: ")
- dessert_1 = raw_input("State a desert: ")
- year_1 = raw_input("State a year: ")
- print STORY % (name, adjective_1, adjective_2, animal_1, food_1, verb_1, noun_1, fruit_1, adjective_3, name, superhero_1, name, country_1, name, dessert_1, name, str(year_1), noun_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement