ex31.py

 1 print ("You enter a dark room witn two doors.Do you go through door #1 or door #2?")
 2 
 3 door = input(">>>")
 4 
 5 if door == "1":
 6     print ("There 's a giant bear here eating a cheese cake. what do you do?")
 7     print ("1. Take the cake.")
 8     print ("2. Scream at the bear.")
 9     
10     bear = input(">>>")
11     if bear == "1":
12         print ("The bear eats your face off. Good job!")
13     elif bear == "2":
14         print ("The bear eats your legs off. Good job!")
15     else:
16         print ("Well,doing %s is probably better. Bear runs away."  % bear)
17 
18 elif door == "2":
19     print ("You stare into the endless abyss at Cthulhu's retina.")
20     print ("1. Blueberries.")
21     print ("2. Yellow jacket clothespins.")
22     print ("3. Understanding revolvers yelling melodies.")
23 
24     insanity = input(">>>")
25     
26     if insanity == "1" or insanity == "2":
27         print ("Your body survives powered by a mind of jello. Good job!")
28     else:
29         print("The insanity rots your eyes into a pool of muck. Good job!")
30         
31 else:
32     print("you stumble around and fall on a knife and die . Good job!")
33     
34     
35     
36     
37     
38     

 

posted @ 2016-11-23 15:03  听风呤  阅读(168)  评论(0编辑  收藏  举报