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