結果 : python program to check if the given string is a palindrome using for loop