結果 : palindrome python program using function