Group anagrams
Write group_anagrams(words) that groups words which are anagrams of each other. Return a of groups (each a list, in original order), with the groups ordered by their first appearance.
Examples
group_anagrams(["eat", "tea", "tan", "ate", "nat", "bat"]) → [["eat", "tea", "ate"], ["tan", "nat"], ["bat"]]
Exercise
3 checksGroup anagrams
def group_anagrams(words):
...
print(group_anagrams(["eat", "tea", "tan", "ate", "nat", "bat"]))
Press Run to try your code, then Check answer to grade it.