Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-02 19:28:05 +02:00
parent 0ab4b3dbc5
commit 0a2f7993f7
24 changed files with 63 additions and 51 deletions

View File

@ -3,9 +3,10 @@ title: includes_all
tags: list,intermediate
---
Returns `True` if all the elements in `values` are included in `lst`, `False` otherwise.
Checks if all the elements in `values` are included in `lst`.
- Check if every value in `values` is contained in `lst` using a `for` loop, returning `False` if any one value is not found, `True` otherwise.
- Check if every value in `values` is contained in `lst` using a `for` loop.
- Return `False` if any one value is not found, `True` otherwise.
```py
def includes_all(lst, values):