import getpass, sys

def question_and_answer(prompt):
    print("Question: " + prompt)
    msg = input()
    print("Answer: " + msg)


def question_with_response(prompt):
    print("Question: " + prompt)
    msg = input()
    return msg

questions = 10
correct = 0

print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions.")
question_and_answer("Are you ready to take a test?")

rsp = question_with_response("What does “www” stand for in a website browser?")
if rsp == "World Wide Web":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("How long is an Olympic swimming pool (in meters)")
if rsp == "50":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("What geometric shape is generally used for stop signs?")
if rsp == "Octagon":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Which animal can be seen on the Porsche logo?")
if rsp == "Horse":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Who was the first woman to win a Nobel Prize (in 1903)?")
if rsp == "Marie Curie":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Worship of Krishna is observed by which Religious Faith?")
if rsp == "Hinduism":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("What happned on Sept 11, 2001")
if rsp == "Terrorists attacked the World Trade Centers":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Who invented French fries?")
if rsp == "Belgium":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Whats the game plan?")
if rsp == "I hate my life":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")
    
rsp = question_with_response("Which side of Abundante is better?")
if rsp == "Right side":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hello, tanayshah running /usr/local/bin/python3
You will be asked 10 questions.
Question: Are you ready to take a test?
Answer: Yes
Question: What does “www” stand for in a website browser?
World Wide Web is correct!
Question: How long is an Olympic swimming pool (in meters)
50 is correct!
Question: What geometric shape is generally used for stop signs?
Octagon is correct!
Question: Which animal can be seen on the Porsche logo?
Horse is correct!
Question: Who was the first woman to win a Nobel Prize (in 1903)?
Marie Curie is correct!
Question: Worship of Krishna is observed by which Religious Faith?
Hinduism is correct!
Question: What happned on Sept 11, 2001
Terrorists attacked the World Trade Centers is correct!
Question: Who invented French fries?
Belgium is correct!
Question: What is the common fungi?
Mushrooms is correct!
Question: Which side of Abundante is better?
Right side is correct!
tanayshah you scored 10/10