Skip to content

Commit 9b13e98

Browse files
committed
added extra credit - punch the bear in the face
1 parent 0be5be3 commit 9b13e98

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ex31.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,32 @@
66
print "There's a giant bear here eating a cheese cake. What do you do?"
77
print "1. Take the cake."
88
print "2. Scream at the bear."
9+
print "3. Punch the bear in the face."
910

1011
bear = raw_input("> ")
1112

1213
if bear == "1":
1314
print "The bear eats your face off. Good job!"
1415
elif bear == "2":
1516
print "The bear eats your legs off. Good job!"
17+
elif bear == "3":
18+
print "You knock the bear out!"
19+
print "When the bear falls over, you see a passage behind him. You go through it."
20+
print "It's dark in here, and smells kind of funny. What do you do?"
21+
print "1. Light a match."
22+
print "2. Feel for a lightswitch."
23+
print "3. Turn on your mining hat."
24+
25+
light = raw_input("> ")
26+
27+
if light == "1":
28+
print "Whoops, looks like that smell was a gas leak. KABOOM!"
29+
elif light == "2":
30+
print "As you feel along the wall for a switch, you run into an electric fence. ZAP!"
31+
elif light == "3":
32+
print "Smart! You find the exit and head home."
33+
else:
34+
print "You huddle up on the floor and die."
1635
else:
1736
print "Well, doing %s is probably better. Bear runs away." % bear
1837

0 commit comments

Comments
 (0)