Okay, so i'm trying to keep track of how many questions the player got right, but when I say 'score = +1' it adds nothing to the score. How do I do this? Here is my code:
score = 0
print('This is a 10 question quiz. Please do not use any capitol letters when answeringquestions'
)
print('1. Can elephants jump? (yes or no)')
answer_1 = input()
if answer_1 == 'yes':
print('Wrong! Elephants cannot jump.')
if answer_1 == 'no':
print('Correct! Elephants cannot jump!')
score = +1
print('(true or false) Karoake means \"Empty Orchestra\" In Japanese')
answer_2 = input()
if answer_2 == 'true':
print('Correct! Karoake does in fact mean \"Empty orchestra\" in Japanese')
score = +1
if answer_2 == 'false':
print('Wrong! Karoake does in fact mean \"Empty orchestra\" in Japanese')
print('Solve the math problem: What is the square root of 64?')
answer_3 = input()
if answer_3 == 8:
print('Good job! The square root of 64 is 8!')
score = +1
else:
print('Incorrect! the square root of 64 is 8.')
print(score)