Tables Challenge 5

Compare rightanswer variable with user answer variable
We are now going to use an if else choice to tell the user if their answer was correct or not.
Copy the code underneath and paste it beneath the rest of your code.
if rightanswer == choice:
    print("Correct")
else:
    print("Incorrect")
#If answer variable is equal to (== means equals) choice variable
#print correct
#else answer variable not equal to variable choice
#print incorrect

Save your work and test the program
Try getting some sums wrong. Does it print incorrect?
Comments