0

Why this program is not working

x=input () if x==4 or x>5: print("true") else: print ("false")

20th Dec 2019, 7:04 AM
Vikas
Vikas - avatar
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())
20th Dec 2019, 7:22 AM
molang
molang - avatar