points = 0
answer = input("How many hours does the average person sleep?")
if answer == "7":
    print("Correct answer!")
    points += 1
else: 
    print("incorrect answer")
    print("The correct answer was 7")

answer = input("When was the first iPhone made?")
if answer == "2007":
    print("Correct answer!")
    points += 1
else: 
    print("incorrect answer")
    print("The correct answer was 2007")

answer = input("Who was the 16th President of the United States?")
if answer == "Abraham Lincoln":
    print("Correct answer!")
    points += 1
else: 
    print("incorrect answer")
    print("The correct answer was Abraham Lincoln")
    

print("You got:", (points/3)*100, "%")
incorrect answer
The correct answer was 7
incorrect answer
The correct answer was 2007
incorrect answer
The correct answer was Abraham Lincoln
You got: 0.0 %