p1 = ["English", "Spanish", "Python", "French"] p2 = ["Jim","John","Jern","Jyarg"] p3 = ["Math","Computer Science", "Physics", "English"] print "Okay, I'm going to ask you a few questions, and you need to tell me which one belongs! input() notFinished1 = True while(notFinished1): print "First Question - Which Doesn't Belong? " + p1 reply = raw_input() if(reply == "Python"): print "Good job! notFinished1 = False else: print "You missed it, try again." notFinished2 = True print "Next Question!"
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