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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -