-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathmadlibs.py
More file actions
17 lines (14 loc) · 812 Bytes
/
madlibs.py
File metadata and controls
17 lines (14 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#Madlibs credit: http://www.teach-nology.com/worksheets/language_arts/madlibs/1/
#Ask the user for all the variables
#Have to set: adjective1 through 5, animal1, animal2, food1, food2,
# verb, ptverb (a past tense verb)
adjective1 = raw_input("Enter an adjective: ")
#print out the result
print "" #blank line
print "Today I went to the zoo. I saw a", adjective1, animal1, "jumping"
print "up and down in its tree. He",ptverb, "through the large"
print "tunnel that led to its", adjective2, "cage. I got a", food1
print "and passed it through the cage to a gigantic", adjective3, animal2
print "towering over my head. Feeding that animal made me hungry. "
print "I went to get a", adjective4,"scoop of", food2 +". Afterwards I had to"
print verb, "to catch our bus. It was a", adjective5, "day at the zoo!"