【leetcode❤python】242. Valid Anagram
class Solution(object):
def isAnagram(self, s, t):
if sorted(list(s.lower()))==sorted(list(t.lower())):
return True
return False
sol=Solution()
print sol.isAnagram(s='anAgram', t='nagaram')