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