fastest solution possible | short and easy to understand.
\nclass Solution:\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dic={}\n        for a in(strs):\n            t=list(a)\n           
```\nclass Solution:\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dic={}\n        for a in(strs):\n            t=list(a)\n            t.sort()\n            t="".join(t)\n            if(t in dic):\n                dic[t].append(a)\n            else:\n                dic[t]=[a]\n        ans=[]\n        for a in dic:\n            ans.append(dic[a])\n        return(ans)\n```
['Python', 'Python3']