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 = 5
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("Who is the leader for all time points scored in the NBA?")
if rsp == "Kareem Abdul Jabbar":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Who is the leader for all time 3-pointers made in the NBA?")
if rsp == "Stephen Curry":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Who is the leader for all time steals in the NBA?")
if rsp == "John Stockton":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Who is the leader for all time assists in the NBA?")
if rsp == "John Stockton":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Who is the leader for all time rebounds in the NBA?")
if rsp == "Wilt Chanberlain":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hello, soham running /usr/bin/python3
You will be asked 5 questions.
Question: Are you ready to take a test?
Answer: yes
Question: Who is the leader for all time points scored in the NBA?
Kareem Abdul Jabbar is correct!
Question: Who is the leader for all time 3-pointers made in the NBA?
 is incorrect!
Question: Who is the leader for all time steals in the NBA?
 is incorrect!
Question: Who is the leader for all time steals in the NBA?
 is incorrect!
Question: Who is the leader for all time rebounds in the NBA?
 is incorrect!
soham you scored 1/5