Title
import getpass, sys
def question_with_response(prompt):
print("Question: " + prompt)
msg = input()
return msg
questions = 3
correct = 0
print('Greatings Human, you are' + " running " + sys.executable + " This is me. Today I will be conducting a survey on you to see if you are fit for human society.")
print("You will be asked " + str(questions) + " questions." + "Please answer all questions honistally in order for your resolt to be accurate")
rsp = question_with_response("Shall we begin?")
rsp = question_with_response("Do you like pinaple on piza?")
if rsp == "no":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("Are videogames good?")
if rsp == "yes":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("What does knowlage is power mean?")
if rsp == "The bigger the book the more the damage":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
print(getpass.getuser() + " you are " + str(correct) +"/" + str(questions))
per = (correct / questions * 100)
print(str(per) + "%")
if per < 70:
print("Your not fit to be let into human society please retake your courses")
else:
print("O great human how though hast achived thy's greatest dream! Join society and be a great contributaion to humanity!")