+ 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()
2 Answers
+ 2
Line 3: Change it with x = int(input("enter a number"))
0
okk thanks
def my_func(): x=input("enter a no.") if xâ 2==0: print("even") else: print("odd") my_func()