0
Num1=int(input("Enter number") if(Num1%2==0) print ("no.is even") else : print ("no.is odd"). Wrong kya hai
3 ответов
+ 5
Num1=int(input("Enter number"))
if(Num1%2==0)
print ("no.is even")
else :
print ("no.is odd")
always indent your code proper it's very important for python?
+ 1
Maninder Singh Sandeep Singh This also needs a colon at the end of the ‘if’ line. Mentioning this just in case...
+ 1
usually written as this:
'''
Num1=int(input("Enter number"))
if Num1%2==0:
print ("no.is even")
else :
print ("no.is odd")
'''