+ 1
Code Coach Question : It is a sign, test case 3 and 5 keep failing
I am doing the Code Coach challenges. I am try to solve the It is a sign. Test Case 3 and 5 keeps failing. What is tested in this cases. As far as I can test, everything is correct. https://code.sololearn.com/c7i3WAkX2d2Y
4 Respostas
+ 3
Hint:
LIVE
LOVE
RACECAR
SOMETHING
+ 2
Yup solved it. Thank you for the input data. Kevin ★
That helped me solving the problem.
Now hoping that the code coach part comes back online.
The problem was not detecting the palindrome it self.
It was resetting the result_check after something was not a palindrome.
My first code only worked when the first word was a palindrome.
It is maybe not the most efficient or easy way to do it, but this is the way I did it.
https://code.sololearn.com/c8PHgJo9n3fY
0
It is "Palindrome". so please check line 27. using revese is easy way 😉
0
if you are not yet sloved another test
0123456
str = "RACECAR" str[0] == str[6] , str[1] == str[5] , str[2] == str[4]
and also there are slove tips in the Community Challenges ( like this -> Palindrome Number)
Happy coding!