結果 : program to check if string is palindrome in python