+ 5
What the hell is wrong
I DON’t have idea of what is wrong :V https://code.sololearn.com/cuwgF1TGbwg1/?ref=app
5 ответов
+ 13
a=input()
if a == "yes":
print("hello")
#Use '==' for comparsion, '=' for assignment and indent after 'if'
+ 3
thank you :)
0
a=input()
if (a==("yes")):
print("hello")
0
if a=("yes"):
the problem is in this line here.
You are using an assignment equals (=) instead of a comparison equals (==).
If you change this line to:
if a == "yes":
it should work fine based on what I see you have in your code.