# -*- coding: utf-8 -*-
"""
Created on Sat May 30 10:56:09 2020

@author: marco
"""

class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        s=sorted(s)
        t=sorted(t)
        if s == t:
            return True
        else:
            return False

s = "rat"
t = "car"

ans = Solution().isAnagram(s,t)
print(ans)
9a9d36eca70ef5f05bc832c3709b8c9e2b491a7c
<mask token>

<mask token>


class Solution:
    <mask token>


<mask token>

<mask token>


class Solution:

    def isAnagram(self, s: str, t: str) ->bool:
        s = sorted(s)
        t = sorted(t)
        if s == t:
            return True
        else:
            return False


<mask token>
print(ans)

<mask token>


class Solution:

    def isAnagram(self, s: str, t: str) ->bool:
        s = sorted(s)
        t = sorted(t)
        if s == t:
            return True
        else:
            return False


s = 'rat'
t = 'car'
ans = Solution().isAnagram(s, t)
print(ans)

# -*- coding: utf-8 -*-
"""
Created on Sat May 30 10:56:09 2020

@author: marco
"""

class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        s=sorted(s)
        t=sorted(t)
        if s == t:
            return True
        else:
            return False

s = "rat"
t = "car"

ans = Solution().isAnagram(s,t)
print(ans)