Everything is right it’s just kind of bugged or something. I don’t know
print("Math Game!")
print()
m = int(input("Name your multiples: "))
print()
print("1 X",m,"")
answer1 = int(input(""))
x=1*m
if x == int(m):
print("Good Job!")
else:
print("Nope, the answer was",x,"")
print()
print("2 X",m,"")
answer2 = int(input(""))
y=2*m
if y == int(m):
print("Awesome!")
else:
print("Nope, the answer was",y,"")
print()
print("3 X",m,"")
answer3 = int(input(""))
z=3*m
if z == int(m):
print("Great!")
else:
print("Nope, the answer was",z,"")
Can you please provide a link to the Repl? It’s easier for us to run the program with the repl link.
It should be
print("Math Game!")
print()
m = int(input("Name your multiples: "))
print()
print("1 X",m,"")
answer1 = int(input(""))
x=1*m
if x == int(answer1):
print("Good Job!")
else:
print("Nope, the answer was",x,"")
print()
print("2 X",m,"")
answer2 = int(input(""))
y=2*m
if y == int(answer2):
print("Awesome!")
else:
print("Nope, the answer was",y,"")
print()
print("3 X",m,"")
answer3 = int(input(""))
z=3*m
if z == int(answer3):
print("Great!")
else:
print("Nope, the answer was",z,"")
Instead of if x, y, z == int(m) it should be x, y, z == int(answer1, answer2, answer3).
4 Likes