Straightforward Python3 Solution
\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dict = {}        \n        for str in strs:\n            key_str = \'\'.join(sorted(
```\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dict = {}        \n        for str in strs:\n            key_str = \'\'.join(sorted(str))\n            if key_str in dict:\n                dict[key_str].append(str)                \n            else:\n                dict[key_str] = [str]\n\n        return list(dict.values())\n```
[]