(SOLVED) Palindrome Checker Mystery? 😨 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

(SOLVED) Palindrome Checker Mystery? 😨

Palindrome is a word that the arrangement of letters will remain same if we rearrange it in opposite direction. Eg; BOB, NOON, RACECAR, etc. This thing is in the Code Coach with title "Its a Sign" sort of. Input 4 string, seperated by space. Will output "Open" if at least 1 palindrome among the 4 strings. Will output "Trash" if no palindrome among the 4 strings. The thing is, ive failed these specific combination: ABBA NEVERMIND FANCY WINDOW which supposely output "Open" as "ABBA" is a palindrome but "Trash" become the output instead. Other combination works well. I even try ABBA ABBA ABBA ABBA and tge output is correct "Open". Is there anything wrong with my code or the combination? https://code.sololearn.com/cQZqMVKy9klP/?ref=app

30th Aug 2020, 4:06 PM
Xtron135
Xtron135 - avatar
2 Answers
+ 2
Owh i see. Thanks so much.. 😊
30th Aug 2020, 7:49 PM
Xtron135
Xtron135 - avatar
+ 1
~ swim ~ thanks. It works. As ur r mod level, i assume u have lot of knowledge of course. May i know why it works with other combination without putting that line? Hope u can explain in not to complex way haha. Im a newbie.. 😅
30th Aug 2020, 7:01 PM
Xtron135
Xtron135 - avatar