結果 : write a function to check if a given string is a palindrome in python