def isAnagram(str1, str2):
str1_list = list(str1)
str1_list.sort()
str2_list = list(str2)
str2_list.sort()
return (str1_list == str2_list)
is_anagram = lambda x1, x2: sorted(x1) == sorted(x2)
print(is_anagram('silent','listen')) # True
print(is_anagram('elivs', 'dead')) # False