+ 1

What is the issue here it shows error on else

num=input("enter the number") if(num℅2==0): print("the num is even") else: print("the num is odd")

1st Sep 2017, 3:04 AM
corejava
5 Answers
+ 13
num=int(input(" ")) # convert string to int if num%2==0: # no () # indent the print statements
1st Sep 2017, 3:41 AM
Jafca
Jafca - avatar
+ 12
# use tab or spaces before print like this else: print(" ")
1st Sep 2017, 8:35 AM
Jafca
Jafca - avatar
+ 10
Have a look here (as suggested by Hatsy Rei): https://www.sololearn.com/Discuss/662096/?ref=app
1st Sep 2017, 3:10 PM
Jafca
Jafca - avatar
+ 1
what is intend print statement
1st Sep 2017, 3:48 AM
corejava
+ 1
why I should use this what is the reason
1st Sep 2017, 12:02 PM
corejava