-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmadlibs.py
28 lines (21 loc) · 1.17 KB
/
madlibs.py
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
27
28
"""
This script will prompt the user to give inputs and complete the madlibs game.
"""
# The template for the story
STORY = "This morning %s woke up feeling %s. 'It is going to be a _ 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."
print "Mad Libs game has begun!"
name = raw_input("Enter a name:")
adj1 = raw_input("Enter an adjective:")
adj2 = raw_input("Enter another adjective:")
adj3 = raw_input("Enter one last adjective:")
verb = raw_input("Enter a Verb:")
noun1 = raw_input("Enter a Noun:")
noun2 = raw_input("Enter another 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:")
print STORY %(name, adj1, adj2, animal, food, verb, noun1, fruit, adj3, name, superhero, name, country, name, dessert, name, year, noun2)