Task: on this line, determine whether it is a palindrome (that is, it is true that it is equally read from left to right and right to left)
Entry on the input is supplied without gaps. The length of the line does not exceed 200. The letters of different register are considered different.
Conclusion must be removed YES if the line is a palindrome, and no otherwise.
Example:
Abba yes
qwerq no
slovo = str ( input ()) x = len (slovo) i = 0 x = x - 1 k = 0 when x - i & gt; = i: f slovo [x - i] == slovo [i]: i += 1 else : k = 1 break if k == 1 : print ( "no" ") else : Print ( "yes" ") The wrong response on the 6th test. I don’t have a concept what word it can be. Someone can come up with?
upd: Tests are checking my code on the site. The program substitutes different words into my code and checks the correctness of my solution. 5 words - correctly. 6 Test - no. I can’t come up with such a word and I don’t know what word the program substituted in this test.
question@mail.ru
·