diff --git a/snippets/group_by.md b/snippets/group_by.md index 6bd8ec4d5..c76c39254 100644 --- a/snippets/group_by.md +++ b/snippets/group_by.md @@ -5,7 +5,7 @@ tags: list,object,beginner Groups the elements of a list based on the given function. -Use `list()` in combination with `map()` and `fn` to map the values of the list to the keys of an object. +Use `map()` and `fn` to map the values of the list to the keys of an object. Use list comprehension to map each element to the appropriate `key`. ```py