'''
Duas palavras sao anagramas se o resultado de ordenacao
do caracteres for o mesmo
'''


def is_anagram(str_a, str_b):
    return sorted(str_a) == sorted(str_b)


print(is_anagram("lives", "levis"))
print(is_anagram("algorithm", "logarithm"))
print(is_anagram("plgorithm", "logarithm"))

if __name__ == '__main__':
    pass

2cdc3f769ddae961ad91a1d03db976a0962b7a06
<mask token>

<mask token>


def is_anagram(str_a, str_b):
    return sorted(str_a) == sorted(str_b)


<mask token>

<mask token>


def is_anagram(str_a, str_b):
    return sorted(str_a) == sorted(str_b)


print(is_anagram('lives', 'levis'))
print(is_anagram('algorithm', 'logarithm'))
print(is_anagram('plgorithm', 'logarithm'))
if __name__ == '__main__':
    pass

'''
Duas palavras sao anagramas se o resultado de ordenacao
do caracteres for o mesmo
'''


def is_anagram(str_a, str_b):
    return sorted(str_a) == sorted(str_b)


print(is_anagram("lives", "levis"))
print(is_anagram("algorithm", "logarithm"))
print(is_anagram("plgorithm", "logarithm"))

if __name__ == '__main__':
    pass
