Why does the compare function not work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
1st Feb 2018, 1:18 PM
Raphael Shay
Raphael Shay - avatar
3 Answers
0
Check indentation on elif blocks (in particular on x==s and x==p) and you will note that that block never will run
1st Feb 2018, 1:40 PM
KrOW
KrOW - avatar
+ 3
Its working like you programmed it and the problem is identation, try to order your code better ;-)
1st Feb 2018, 1:39 PM
Daniel
Daniel - avatar
+ 2
Thanks!
1st Feb 2018, 6:35 PM
Raphael Shay
Raphael Shay - avatar