結果 : palindrome string program in python using function