0
It's not working.can anyone help me?
3 Respostas
+ 1
# try with:
if x == "23":
# OR
x = int(input())
+ 1
x=input()
input function takes input as a string..
If you want to number input convert to int by casting..
So
x=int(input())
if x==23:
print("you win")
else:
print("you lose")
Or
it works by using "", like
x=input()
if x=="23":
print("you win")
else:
print("you lose")
+ 1
Use int in input...you have to write like this...
X=int(input())