Skip to content

Commit

Permalink
Fix description of all with empty list.
Browse files Browse the repository at this point in the history
Related to #166
  • Loading branch information
mblayman committed Sep 11, 2024
1 parent ca481ae commit e956247
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ Example:
## all

`all` returns `True` if all elements in something list-like (such as a
list or tuple) are "truthy." If any element is false or if the list is
empty, it returns `False`.
list or tuple) are "truthy" or if the list is empty.
If any element is false, it returns `False`.

Example:

Expand All @@ -229,6 +229,8 @@ True
False
>>> all([1, 2, 3])
True
>>> all([])
True
```

[Back](#quick-jump-list)
Expand Down

0 comments on commit e956247

Please sign in to comment.