questions = 3
correct = 0

print('Hey There!!!, ' + getpass.getuser() + " running " + sys.executable)
print("For this test you will be asked " + str(questions) + " questions.")
question_and_answer("Are you ready to take a test?!?!?!?")

rsp = question_with_response("How do you update the changes you made in vscode to your blog?")
if rsp == "commit in vscode":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("What is the keyword to define a function")
if rsp == "def":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("What is a line of code that does not change?")
if rsp == "static text":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hey There!!!, ananyag2617 running /bin/python3
For this test you will be asked 3 questions.
Question: Are you ready to take a test?!?!?!?
Answer: yes
Question: How do you update the changes you made in vscode to your blog?
 is incorrect!
Question: What is the keyword to define a function
 is incorrect!
Question: What is a line of code that does not change?
 is incorrect!
ananyag2617 you scored 0/3