0
Why this program is not working
x=input () if x==4 or x>5: print("true") else: print ("false")
1 Answer
+ 3
The input() will return your keyboard input as a String. You need it to be an integer, so just declare it as an integer: x=int(input())
x=input () if x==4 or x>5: print("true") else: print ("false")