I\'m checking if two strings a and b are permutations of each other, and I\'m wondering what the ideal way to do this is in Python. From the Zen of
a
b
def permute(str1,str2): if sorted(str1) == sorted(str2): return True else: return False str1="hello" str2='olehl' a=permute(str1,str2) print(a