6th Apr 2020, 11:55 AM
HAMZA
3 Antworten
+ 1
# try with: if x == "23": # OR x = int(input())
6th Apr 2020, 11:59 AM
visph
visph - avatar
+ 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")
6th Apr 2020, 12:00 PM
Jayakrishna 🇮🇳
+ 1
Use int in input...you have to write like this... X=int(input())
6th Apr 2020, 1:21 PM
ANJALI SAHU