Hello in advance I want to know how to invert a string to check that it is palindrome. Greetings. it occurred to me to do a for cycle and then each iteration to insert it in a list
Hello in advance I want to know how to invert a string to check that it is palindrome. Greetings. it occurred to me to do a for cycle and then each iteration to insert it in a list
Generates a reversed word in a method:
def esPalindrome(s):
return s == s[::-1]
print esPalindrome('poop')