def guildhall(): print "You are now in the guild hall." print "There are two openings here, a front door and a back door." print "Which will you take?" answer = raw_input("Type front or back and hit 'Enter'.") if answer == "front" or answer == "l": print "You are not outside in the center of town." elif answer == "back" or answer == "b": print "You are now in the kitchen of the guild hall." else: print "What did you say?" guildhall()
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