def clinic(): print "You've just entered Jonathan's hotel!" print "I am MIDI, the virtual assistant of the hotel." print "What is your name??" answer = raw_input("Type your name and hit 'Enter'.").lower() if answer == "rosa" or answer == "r": print print "Oh, it's you... welcome to the hotel!" elif answer == "jonathan" or answer == "j": print print "Oh, master Jonathan! I didn't realize you were here! Welcome back, master!" elif answer == "shirley" or answer == "s": print print "So that's why it smells in here, you must've farted again. Anyways, welcome to the hotel. Now, how do I turn on the vents..." elif answer == "john" or answer == "dad": print print "Hey baldie. Welcome to the hotel." elif answer == "dawn" or answer == "mom": print print "Oh, hello there. Welcome to the hotel! Jonathan told me about you. Enjoy the private elevator! :P" elif answer == "jeffrey" or answer == "jeff": print print "Oh, so you're Jeffrey? Jonathan told me about you. You seem nice. Welcome! There's a room reserved for you." elif answer == "anthony" or answer == "a": print print "Oh no, it's... him! Initiate lockdown protocol!!!" elif answer == "jaret" or answer == "THE_GUY19": print print "Hey, it's a guy... or is it... THE guy! Welcome, Jonathan mentioned you to me. Enjoy your stay." elif answer == "tristan" or answer == "paco": print print "Hey, Paco! What's up! There's a special room for you, Jonathan made sure!" else: print "You didn't tell me your name! Try again." clinic() clinic()
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