print "You just entered what appears to be an abandoned science lab. do you go through Hallway #1 or Hallway #2?" hallway = raw_input("> ") if hallway == "1": print "You come to a lab room where you see a broccoli doing the ChaCha with a cockatoo. What do you do?" print "1. Bust Throug the door and scream 'EVERYBODY MAMBO!!!'" print "2. Fill your steamer with water and bring the water to a slow boil.Add salt and pepper to taste." broccoli = raw_input("> ") if broccoli == "1": print "you embark on a journey of sound that is far beyond the comprehension of written language. ((d-.-b))" elif broccoli == "2": print "An army of hungry vegetables attack you. It doesnt end well." elif broccoli == "7": print "%s How original" %broccoli elif broccoli == "9": print "EEEEEEeeeeeeeeeeewwwwwwwwwwwwww, thats diiiirrrtty :(" elif broccoli == "0": print "You cant do that here" elif broccoli == "8": print "OK... I see what you did there" else: print "Realy... %s ...congratulations! " %broccoli elif hallway == "2": print "you end up in a room with a single table. on top of this table there are two items" print "1. you reach for number one but you realy want to know what number two is." print "2. pudding...its pudding." pudding = raw_input("> ") if pudding == "1": print "just reload and push 2 already." elif pudding == "2": print "You can't have any pudding if you dont eat your meat." else: print "Into the meat grinder with yah!" else: print "This isn't the place for that"
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