import getpass, sys

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

questions = 3
correct = 0

print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions.")


rsp = question_with_response("Is this the first question on the test?")
if rsp == "yes":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

if else == ""

rsp = question_with_response("Is this test hard so far?")
if rsp == "no":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Is this the best quiz you have taken in your entire life?")
if rsp == "yes":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hello, jaggerklein running /usr/local/opt/python@3.10/bin/python3.10
You will be asked 3 questions.
Question: Is this the first question on the test?
yes is correct!
Question: Is this test hard so far?
no is correct!
Question: Is this the best quiz you have taken in your entire life?
yes is correct!
jaggerklein you scored 3/3