Why does the compare function not work | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
1st Feb 2018, 1:18 PM
Raphael Shay
Raphael Shay - avatar
3 Antworten
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