input: Write a python function to check if a word is a palindrome.
  assert is_palindrome("noon") == True
  assert is_palindrome("hello") == False
  assert is_palindrome("level") == True
output: def is_palindrome(word):
      return word == word[::-1]