#Hello class mates! name=raw_input("What is your name?") print name quest=raw_input("What is your quest?") print quest color=raw_input("What is your favorite color?") print color cheesburgers=raw_input("How many cheesburgers would you like?") print cheesburgers print "Ah, so your name is %s, your quest is %s, your favorite color is %s, and you want %s cheesburgers." % (name, quest, color, cheesburgers) print "Would you like some fries with those cheesburgers? Yes or no?" fries=raw_input() print fries print "Ok, i'll take that as a %s. Bye now!" % (fries) import datetime today = datetime.date.today() print "You suddenly wake up from a lucid dream, and see a tall figure standing above you" print "'Man, that was a long dream. Oh, by any chance do you know what today's date is?' you ask the strange figure." print "'Why, its %s'." % today print "'Oh my god!' you screem, as you realize you forgot to get your mom that Cristmas Present. 'Well, godbye now,' you say as you walk away.'"
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