Use while like example. Don’t use int for input – maybe it will not number:
while 1:
math = input("What Is 8 x 4: ")
if not math.isdigit():
print("It's not number")
elif math == "32":
print("You Got The Question Correct")
break
else:
print("Sorry You Got The Question Wrong Try Again")
2
solved How do I repeat the program? [closed]