using Hashtable Easy to understand
\n\n# Python Solution\n\nclass Solution:\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dic={}\n        for word in strs:\n         
\n\n# Python Solution\n```\nclass Solution:\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n        dic={}\n        for word in strs:\n            sorted_word="".join(sorted(word))\n            if sorted_word not in dic:\n                dic[sorted_word]=[word]\n            else:\n                dic[sorted_word].append(word)\n        return dic.values()\n```\n# please upvote me it would encourage me alot\n
['Python3']