score = 0
questions = 3

answer = input("What is the capital of Canada?")
if answer.lower() == "ottawa":
    print("对")
    score = score + 1
    print(score)

else:
    print("错")
    
answer2 = input("What is my name?")
if answer2.lower() == "nandan":
    print("对")
    score = score + 1
    print(score)

else:
    print("错")


answer3 = input("Who is the first president of the US? (last name only)")
if answer3.lower() == "washington":
    print("对")
    score = score + 1
    print(score)

else:
    print("错")

percent = score/questions * 100 

if percent < 50:
    print("Good try but not good")
    print(percent)
else: 
    print("Absolutely amazing")
    print(percent)
错
错
对
1
Good try but not good
33.33333333333333