input: Write a python function to check if two words are anagrams.
  assert is_anagram("listen", "silent") == True
  assert is_anagram("triangle", "integral") == True
  assert is_anagram("apple", "pale") == False
output: def is_anagram(word1, word2):
      return sorted(word1) == sorted(word2)