input: Write a python function to check if two words are anagrams.
  assert isAnagram('dear', 'read') == True
  assert isAnagram('hello', 'bello') == False
  assert isAnagram('listen', 'silent') == True
  assert isAnagram('triangle', 'integral') == True
  assert isAnagram('apple', 'papel') == True
output: def isAnagram(word1, word2):
      return sorted(word1) == sorted(word2)