+ 1

What is wrong in this code??

def my_func(): x=input("enter a no.") if x℅2==0: print("even") else: print("odd") my_func()

29th Apr 2018, 7:30 AM
alfiya husain
alfiya husain - avatar
2 Answers
+ 2
Line 3: Change it with x = int(input("enter a number"))
29th Apr 2018, 7:36 AM
Jemuel Stanley
Jemuel Stanley - avatar
0
okk thanks
29th Apr 2018, 7:34 AM
alfiya husain
alfiya husain - avatar