>>> x = 15
if (x/2)*2 == x:
print ('Even')
else:
print ('Odd')
SyntaxError: multiple statements found while compiling a single statement
>>> x = 15 if (x/2)*2 == x:
print ('Even')
else:
print ('Odd')
SyntaxError: invalid syntax
you can't write several statement in one line in python, write
x = 15
if (x/2)*2 == x:
print ('Even')
else:
print ('Odd')
here:
and got