diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 2d5faa268..08d20c3a0 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -574,14 +574,14 @@ "type": "snippetListing", "title": "has_duplicates", "attributes": { - "text": "Returns `True` if there are duplicate values in a flast list, `False` otherwise.\n\nUse `set()` on the given list to remove duplicates, compare its length with the length of the list.\n\n", + "text": "Returns `True` if there are duplicate values in a flat list, `False` otherwise.\n\nUse `set()` on the given list to remove duplicates, compare its length with the length of the list.\n\n", "tags": [ "list", "beginner" ] }, "meta": { - "hash": "498b0cc49b4a1ad7f98addb9c7bbc84320d91a5558eaf681352086c5ad6edb44" + "hash": "fb22c3f566fea0468c7331478cb216890de4af6b86b24f1ac41656bae949d99c" } }, { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 124b227f3..4e35e4baa 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -908,7 +908,7 @@ "type": "snippet", "attributes": { "fileName": "has_duplicates.md", - "text": "Returns `True` if there are duplicate values in a flast list, `False` otherwise.\n\nUse `set()` on the given list to remove duplicates, compare its length with the length of the list.\n\n", + "text": "Returns `True` if there are duplicate values in a flat list, `False` otherwise.\n\nUse `set()` on the given list to remove duplicates, compare its length with the length of the list.\n\n", "codeBlocks": { "code": "def has_duplicates(lst):\n return len(lst) != len(set(lst))", "example": "x = [1, 2, 3, 4, 5, 5]\ny = [1, 2, 3, 4, 5]\nhas_duplicates(x) # True\nhas_duplicates(y) # False" @@ -919,11 +919,11 @@ ] }, "meta": { - "hash": "498b0cc49b4a1ad7f98addb9c7bbc84320d91a5558eaf681352086c5ad6edb44", + "hash": "fb22c3f566fea0468c7331478cb216890de4af6b86b24f1ac41656bae949d99c", "firstSeen": "1522569789", - "lastUpdated": "1578048759", - "updateCount": 7, - "authorCount": 3 + "lastUpdated": "1581355826", + "updateCount": 8, + "authorCount": 4 } }, {