This is a simple program to check if a number is odd or even.I want to check if the user wants to continue or not and when I run it I get an Invalid Syntax Error on the break line, what have I got wrong?
while True:
if cont != "no":
num = (int(input("Type a number. ")))
num_remainder = num % 2
if num_remainder == 0:
print ()
print (num, " is an even number.")
else:
print ()
print (num, " is an odd number.")
cont= (input("Would you like to continue?")
continue
else:
break
Thanks