#Using a Dictionary with the variable QandA, I was able to create a quiz that abstracted data from the dictionary and inputted it into the quiz.
QandA = [
    "1. True or False, def is a key word in Python that defines a function", "True",
    "2. True or False, In Python anatomy of you will NOT be importing libraries and functions?", "False",
    "3. True or False, Hello world is a string literal?", "True",
    "4. True or False, Output in Jupyter Notebook is below the code cell", "True",
    "5. True or False, Input and Output in Jupyter Notebook Input is NOT in line with Output?", "True",
    "6. True or False, an if expression is not evaluated for true or false", "False",   
    "7. True or False, return command in function does not return msg input by user",  "False",
    "8. True or False, false takes branch of code directly under else command", "True",
    "9. True or False, correct += 1 is NOT the way to add one to the score", "False",
    "10. True or False, is msg a parameter to the print function?", "True",
    ]


#total points and using new quiz var
points = 0
current = 0
quiz = 1
print ("Welcome to my true or false quiz!")

#Using while lets me loop function

while quiz < 11:
    print()
    question = input(QandA[current])
    if question == QandA[current+1]:
        print ("That's correct!")
        points = points +1
        current = current +2
    else: 
        print ("Sorry, that is incorrect!")
        points = points -1
        current = current +2
    quiz = quiz +1

#Final Message
print("Good Job, You scored", points, "points out of ten")
Welcome to my true or false quiz!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!

That's correct!
Good Job, You scored 10 points out of ten