input: Write a function to check if two words are anagrams.
  assert is_anagram("silent", "listen") == True
  assert is_anagram("evil", "vile") == True
  assert is_anagram("restful", "fluster") == True
  assert is_anagram("python", "typhon") == True
  assert is_anagram("example", "samples") == False
output: def is_anagram(word1, word2):
      return sorted(word1) == sorted(word2)