print "enter a dark room with two doors. do you go through door #1 or door #2?" door = raw_input (">") if door == "1": print "theres a giant bear her eating a cheese cake. what do you do?" print "1. take the cake." print "2, scream at the bear." bear = raw_input ("> ") if bear == "1": print "the bear eats your face off. good job!" elif bear == "2": print "the bear eats your legs off . good job!" else: print "well, doing %s proably better. bear runs away." % bear elif door == "2": print " you stare in to the endless abyss at cthulhu's retina." print "1. blueberries." print "2. yellow jecker clothespins." print "3. understanding rebolvers yelling melodies." insanity = raw_input("> ") if insanity == "1" or insanity == "2": print "your body survives powerd by a mind of jello. good job!" else: print " the insanity rots your eyes in tp a pool of the muck. good job!" else: print "you stumble around and fall on a knife and die. good job!"
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question