if statement - Simple If program in Python syntax error -


num = int(input("enter number: ") if num%2 == 0:     print("the number even")  else:     print("the number odd")enter code here 

i'm getting syntax error on if statement line, have searched everywhere reason why happens, can't find it, help? i'm using visual studio 2015 ide if that's help.

num = int(input("enter number: ")) if num%2 == 0:     print("the number even")  else:     print("the number odd")enter code here 

missing ) on line before. lots of times when syntax errors on line happens @ line or line or few lines before that, in case it's looking matching paren.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -