If the sub - string is of even length and is a palindrome then , we return False
if ( len ( x ) % 2 == 0 and checkPalindrome ( x ) == True ) : NEW_LINE INDENT return False NEW_LINE DEDENT return True NEW_LINE