I'm making a maths test, where if the user puts the correct input i want it to print correct.I have this
answer = (input) ("What is your answer?")
maths = eval(str(num1) + operation + str(num2))
if answer == maths:
print ('Correct')
else:
print('Wrong')
However its not working. It doesn't print correct, it just prints wrong whether input is correct or not. cheers aron