-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMadLibs
More file actions
45 lines (21 loc) · 1.2 KB
/
Copy pathMadLibs
File metadata and controls
45 lines (21 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""This is my Mad Libs programme
Author: Alex"""
# 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 %s 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 "Mad Libs has started!"
name = raw_input("Enter a name: ")
adj_1 = raw_input("Enter first adjective: ")
adj_2 = raw_input("Enter second adjective: ")
adj_3 = raw_input("Enter third adjective: ")
verb = raw_input("Enter a verb: ")
noun_1 = raw_input("Enter a noun: ")
noun_2 = raw_input("Enter a noun: ")
animal = raw_input("Enter an animal: ")
food = raw_input("Enter a food: ")
fruit = raw_input("Enter a fruit: ")
superhero = raw_input("Enter a superhero: ")
country = raw_input("Enter a country: ")
dessert = raw_input("Enter a dessert: ")
year = raw_input("Enter a year: ")
# in terminal: python Midlibs.py
print STORY % (name, adj_1, adj_2, animal, food, verb, noun_1, fruit, adj_3, name, superhero, name, country, name, dessert, name, year, noun_2)