I'm creating a program where I output math problems and user inputs their answer. When I test out and input the right answer, it says it's the wrong answer the correct answer is the answer is inputted.
I've tried storing the answer in a variable but that didn't change anything. I also tried putting them in parenthesis which didn't work as well.
numberone = (randint(1, 10))
numbertwo = (randint(1, 10))
print(f"Sara biked at {numberone}mph for {numbertwo} hour(s). How far
did she travel?")
answer= input("Enter answer here:")
correct = (numberone*numbertwo)
if answer == correct:
print("Correct!")
else:
print(f"Sorry that is the wrong answer. The correct answer is
{correct}.")
I input numberone*numbertwo but it said I was wrong.