import time print ("This is Levin's epic program. ENJOY IT OR ELSE!!!!") time.sleep(1) print ("psswrdths") time.sleep(1) print ("Hello World!") time.sleep(1) code=str(raw_input("please type in the code; it’s really obvious!")) print (code) if code == "psswrdths": name=raw_input ("What is your name?") print ("Hello " + name + "!") age=raw_input ("How old are you?") print ("Ok. So your name is " + name + ", and you are " + age + " years old. Welcome to this quiz (of doom...)") time.sleep(2) print ("First question:") time.sleep(1) questionone=raw_input ("What is 6X6?") if questionone == "36": time.sleep(1) print ("Congratulations, you got it right! (although it is the most easy question in this quiz...)") else: time.sleep(1) print ("Incorrect. The answer was 36. Better luck next time.") time.sleep(2) print ("Question 2...") questiontwo=raw_input ("In which country is Hadrian's wall?") if questiontwo == "England": time.sleep(1) print ("Correct.") elif questiontwo == "england": time.sleep(1) print ("Correct.") else: time.sleep(1) print ("Incorrect. The answer was England.") time.sleep(2) print ("Question three...") time.sleep(1) questionthree=raw_input ("In which continent are the Caribbean Islands nearest to?") if questionthree == "North America": time.sleep(1) print ("Correct.") elif questionthree == "north America": time.sleep(1) print ("Correct") elif questionthree == "North america": time.sleep(1) print ("Correct") elif questionthree == "north america": time.sleep(1) print ("Correct") else: time.sleep(1) print ("Incorrect. The answer was North America.") time.sleep(2) print ("Congratulations. You have completed the quiz! I hope you had fun!!!!") time.sleep(3) print ("This program was made on the fourth of November 2017 by Levin Rainey.")
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