print("Hi wlcome to thepython quiz.") var1 = input("Do you want to begin the quiz,yes or no?") if var1 == "yes": print("Hi and welcome to the quiz.") print("Before we get started we will ask you a cople questions") var2 = input("What is your name?") print("Out of the list below what is your favorite codeing language?") var3 = input("Python,Ruby,HTML,C++,Java,SEQL") if var3 == "Python": print("Welome to the Python quiz") if var3 == "Ruby": print("Hi and welcome to the Ruby quiz.") if var3 == "HTML": print("Welcome to the HTML quiz.") if var3 == "C++": print("Welcome to the C++ quiz.")
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