Travis build: 364
This commit is contained in:
@ -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
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user