Update snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-11 13:40:42 +03:00
parent eca0ad5743
commit 281a9871e1
3 changed files with 19 additions and 20 deletions

View File

@ -5,7 +5,7 @@ tags: list,beginner
Checks if all elements in a list are equal.
- Use `set()` to eliminate duplicate elements and then use `len()` to check if length is 1.
- Use `set()` to eliminate duplicate elements and then use `len()` to check if length is `1`.
```py
def all_equal(lst):