Generate a python program to detect palindromes
def is_palindrome(word): 
    word = word.lower() 
    rev_word = word[::-1] 
    if word == rev_word: 
        return True
    else: 
        return False