def recursive(word, low, high):
    word = word[low:high]
    return ispalindrome(word)

def ispalindrome(word):
    if len(word) < 2: return True
    if word[0] != word[-1]: return False
    return ispalindrome(word[1:-1])


print(recursive("kayak", 0,5))
128c647e737d1968753a487a7a761e6d19e8fee9
<mask token>

def recursive(word, low, high):
    word = word[low:high]
    return ispalindrome(word)


<mask token>

def recursive(word, low, high):
    word = word[low:high]
    return ispalindrome(word)


def ispalindrome(word):
    if len(word) < 2:
        return True
    if word[0] != word[-1]:
        return False
    return ispalindrome(word[1:-1])


<mask token>

def recursive(word, low, high):
    word = word[low:high]
    return ispalindrome(word)


def ispalindrome(word):
    if len(word) < 2:
        return True
    if word[0] != word[-1]:
        return False
    return ispalindrome(word[1:-1])


print(recursive('kayak', 0, 5))

def recursive(word, low, high):
    word = word[low:high]
    return ispalindrome(word)

def ispalindrome(word):
    if len(word) < 2: return True
    if word[0] != word[-1]: return False
    return ispalindrome(word[1:-1])


print(recursive("kayak", 0,5))