+ 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")
5 Respostas
+ 13
num=int(input(" ")) # convert string to int
if num%2==0: # no ()
# indent the print statements
+ 12
# use tab or spaces before print like this
else:
print(" ")
+ 10
Have a look here (as suggested by Hatsy Rei):
https://www.sololearn.com/Discuss/662096/?ref=app
+ 1
what is intend print statement
+ 1
why I should use this what is the reason