def main() : print ("Welcome here") print ("Here is Q and A place!") print ("Note : you should write the correct spelling and make the first word capital") print ("Ready") print ("First what is your name?") HIS_NAME = input(print("Your name:")) print("Q1:Who is the president of America? (write his full name his name and family name)") Request = input(print("The answer:")) if Request == "Joe Biden": print("Correct! well done"+ HIS_NAME +"onto the next stage congrats :)") else: print("×! "+ HIS_NAME +" have a better luck next time ):") return print(" ") print("Q2:A religon that they say there is no god?") Request = input(print("The answer:")) if Request == "Atheism": print("Correct! well done"+ HIS_NAME +"onto the next stage congrats :)") else: print("×! "+ HIS_NAME +" have a better luck next time ):") return print(" ") print("Q3:Allah has ___ names: ") Request = input(print("The answer:")) if Request == "99": print("Correct! "+ HIS_NAME +"!onto the next stage congrats :)") else: print("×! "+ HIS_NAME +" have a better luck next time ):") return if __name__ == '__main__': main()
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