def Start(): print "please type your name!" quest = "?" User = raw_input("") begin = "This is your new 'name'. Are you okay with me calling you " print begin + User + quest def anser(): print "So are you okay with being called that?" answer = raw_input("So can I call you that?") if answer == "Yes" or answer == "yes": print "Okey-Dokey!" elif answer == "No" or answer == "no" or answer == "NO": print "AWW!.. Rerunning the program..." print "Now!" Start() else: print "Um... There's a glitch. please write yes or no." anser() anser() def Ready_to_learn(): learn = raw_input("Are you ready to learn yet!?") if learn == "Yes" or learn == "yes": print "Finally!" elif learn == "No" or learn == "no": print "Come on. You've got to be kidding!" Ready_to_learn() else: print "Stop trying to glitch me!" Ready_to_learn() Ready_to_learn() Start()
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