Oct-18-2017, 12:02 PM
def isStringPalindrome(string): rString='' def reverse(string): index=len(string) while index>0: rString=rString+string[index-1] index=index-1 if string==rString: print('String is Palindrome') else: print('string is not palindrome') isStringPalindrome('reviver')Why is this not working as it is printing back string is not palindrome when it is?