Like I stated in the title I'm building a program that just multiplies but I want to ask the user if they want to continue or not. well, I have everything working but the "else" the if statement just passes over it.
def restart():
pass
def multiply():
while True:
try:
a = int(input("enter something: ", ))
b = int(input("enter something: ", ))
sum = a * b
print(sum)
restart()
continuing = input("Would you like to continue: ", )
if(continuing == "yes" or "no"):
if(continuing == "yes"):
multiply()
elif(continuing == "no"):
break
else:
restart()
break
except ValueError:
print("you have to enter a number sorry you have to start over")
multiply()
break
multiply()
I tried messing with the breaks but it doesn't fix it. any ideas?