Every time I use the if statement directly after using input I get an error. For example:
num = input("Enter a number: ")
if num % 2 == 0:
print("Even Number")
else:
print("Odd Number")
I get this error:
Traceback (most recent call last): File "python", line 2, in TypeError: not all arguments converted during string formatting
What am I doing wrong?