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')

04-25 06:48