結果 : write a program in python to check if a sequence is a palindrome