Python 3 -> 90% faster. Simple approach
Suggestions to make it better are always welcomed.\n\nKey learnings for me:\n1. parameter "list" in defaultdict is lowercase\n2. sorted() returns iterable. We n
**Suggestions to make it better are always welcomed.**\n\nKey learnings for me:\n1. parameter "list" in defaultdict is lowercase\n2. sorted() returns iterable. We need to join the returned list to create a string\n3. We can loop through dictionary to store the values in result list or we can directly use dic.values()\n\n```\ndef groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n\tdic = collections.defaultdict(list)\n\tfor st in strs:\n\t\ts = \'\'.join(sorted(st))\n\t\tdic[s].append(st)\n\n\treturn dic.values()\n```\n\n**I hope that you\'ve found this useful.\nIn that case, please upvote. It only motivates me to write more such posts\uD83D\uDE03**
['Sorting', 'Python', 'Python3']