0
Why does this not work? x = input("") if x==potato: print("YOU SIR, ARE AMAZING") else: print("WHY...")
x = input("") if x==potato: print("YOU SIR, ARE AMAZING") else: print("WHY...")
3 Réponses
+ 1
if x == "potato":
You want to compare the variable x with the String "potato".
What you do is comparing the variable x the the variable potato but there is non.
0
theres no variable called potato defined.. so its basically like if you were given a sheet of paper titled X and someone then comes to you and asks for you to compare a paper titled Potato to it but you don't have it so you frantically search for it but it doesn't exist
0
Thanks!