user
Write a function to check if the given word is a palindrome.

Additional Context:
word = "racecar"

Answer:
assistant
def is_palindrome(word): 
    rev = ''.join(reversed(word)) 
  
    if (word == rev): 
        return True
    return False