Check if a string i palindrome or not return true or false,

def isPalindrome(s):
    s = s.lower()
    return s == s[::-1]
    
print(isPalindrome('kayak'))