結果 : define a boolean function is palindrome in python