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.
Cheers Aron A
Aucun commentaire:
Enregistrer un commentaire