+ 2
I was 30 min testing this but still dont work, any ideas?
This code is supposed to output different texts(:D,D: or ?) depending on the input, but it only output :D. Why is this happening? https://code.sololearn.com/cjX15Ie9i999/?ref=app
2 Answers
+ 5
if a == "yes" or "Yes" is not correct. You have to test if a== "yes" or a == "Yes".
Yours evaluates to false or true (as a non-empty string counts as true) so it's true.
+ 15
To make it more simple, you could say a = a.lower() which will convert all the characters to lowercase. Just make sure your if statement says
if a == "yes".