Arthimatic Quiz Not Accepting Correct Answers
I am attempting to make an arithmetic quiz, but have run into this issue: Even if I input the correct answer, it seems to ignore the correct answer code and go straight to the inco
Solution 1:
3
is not equal to "3"
. The result of a call to input
(in Python3) is a string, not a number.
Call int
on the user input
...
ans1 = input("What is " + str(num1) + " multiplied by " + str(num2) + "? ")
ans1 = int(ans1)
...
Post a Comment for "Arthimatic Quiz Not Accepting Correct Answers"