not all arguments converted during string formatting.. NO % variables
The problem is that you take user input: x = input() Now x is a str. So, on this line: elif x % 2 == 0: #even The % operator acts as a string interpolation operator. >>> mystring = “Here goes a string: %s and here an int: %d” % (‘FOO’, 88) >>> print(mystring) Here … Read more