+ 2

[SOLVED] Python Problem

I have tried to play with the string and ifs but I have got a problem Whatever I type it print the only the first thing https://code.sololearn.com/cXh69JqEdKOL/?ref=app How could I use it in better way?

6th Apr 2018, 7:13 AM
The Coder
The Coder - avatar
2 Antworten
+ 7
Try putting quotations inside the braces of the input. x = input(" ") Also, the if statement should be like if x == "Hey" or x == "Yo":
6th Apr 2018, 7:15 AM
Fox
Fox - avatar
+ 2
CipherFox Thanks for help
6th Apr 2018, 7:45 AM
The Coder
The Coder - avatar