def question_and_answer(prompt):

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


import getpass, sys

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

questions = 10
correct = 0

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


questions = ["Are you ready to take the Quiz?", "What are nitrogenous bases in DNA?", "What does DNA stand for?", "Who was the person who came up with the theory of Evolution?","In what cell does photosynthesis take place?", "What is the name of the relationship in which both sides benefit?", "Glycogen is a polymer of what?", "How many chromosomes do humans have?", "What are the weak bonds between water molecules called?", "What is the division of body cells called?", "What is the division of gametes called?"]
answers = ["yes", "Adenine, Guanine, Cytosine, Thymine", "Deoxyribonucleic Acid", "Charles Darwin","Chloroplast", "Mutualism", "Glucose", "46", "Hydrogen bonds", "Mitosis", "Meiosis"]

for i in range(len(questions)):
    rsp = question_with_response(questions[i])
    if rsp == answers[i]:
       print(rsp + " is correct!")

       correct += 1

    else:
       print(rsp + " is incorrect")
       print("The correct answer is " + answers[i])

print(getpass.getuser() + " you scored " + str(correct) +"/10")
Hello,srihitak
You will be asked 10 questions. 
Question: Are you ready to take the Quiz?
yes is correct!
Question: What are nitrogenous bases in DNA?
thymine is incorrect
The correct answer is Adenine, Guanine, Cytosine, Thymine
Question: What does DNA stand for?
Deoyribonucleic Acid is incorrect
The correct answer is Deoxyribonucleic Acid
Question: Who was the person who came up with the theory of Evolution?
Charles Darwin is correct!
Question: In what cell does photosynthesis take place?
Chloroplast is correct!
Question: What is the name of the relationship in which both sides benefit?
Mutualism is correct!
Question: Glycogen is a polymer of what?
Glycogen is incorrect
The correct answer is Glucose
Question: How many chromosomes do humans have?
46 is correct!
Question: What are the weak bonds between water molecules called?
Hydrogen bonds is correct!
Question: What is the division of body cells called?
Mitosis is correct!
Question: What is the division of gametes called?
Meiosis is correct!
srihitak you scored 8/10