結果 : palindrome or not in python using for loop