From 6a56601861a76b92e9ef8d6772bd09d159a06812 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Mon, 10 Feb 2020 19:30:26 +0200 Subject: [PATCH] Fix typo in has_duplicates `flast` -> `flat` --- snippets/has_duplicates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/has_duplicates.md b/snippets/has_duplicates.md index 3fe9cff7f..f9e092219 100644 --- a/snippets/has_duplicates.md +++ b/snippets/has_duplicates.md @@ -3,7 +3,7 @@ title: has_duplicates tags: list,beginner --- -Returns `True` if there are duplicate values in a flast list, `False` otherwise. +Returns `True` if there are duplicate values in a flat list, `False` otherwise. Use `set()` on the given list to remove duplicates, compare its length with the length of the list.