```python
def isAnagram(s,t):
dice1 = {}
dice2 = {}
for ch in s:
dice1[ch] = dice1.get(ch,0) + 1
for ch in t:
dice2[ch] = dice2.get(ch,0) + 1
return dice1 == dice2
print(isAnagram('rat', 'car'))
```python
def isAnagram(s,t):
dice1 = {}
dice2 = {}
for ch in s:
dice1[ch] = dice1.get(ch,0) + 1
for ch in t:
dice2[ch] = dice2.get(ch,0) + 1
return dice1 == dice2
print(isAnagram('rat', 'car'))