結果 : palindrome in python using function