def is_anagram(s, t):
maps = {}<EOL>mapt = {}<EOL>for i in s:<EOL><INDENT>maps[i] = maps.get(i, <NUM_LIT:0>) + <NUM_LIT:1><EOL><DEDENT>for i in t:<EOL><INDENT>mapt[i] = mapt.get(i, <NUM_LIT:0>) + <NUM_LIT:1><EOL><DEDENT>return maps == mapt<EOL>
:type s: str
:type t: str
:rtype: bool