| title | Python all() built-in function - Python Cheatsheet |
|---|---|
| description | Return True if all elements of the iterable are true (or if the iterable is empty). |
>>> all([True, True, True])
# True
>>> all((0, True, False))
# False
>>> all({1, 1, 1})
# True| title | Python all() built-in function - Python Cheatsheet |
|---|---|
| description | Return True if all elements of the iterable are true (or if the iterable is empty). |
>>> all([True, True, True])
# True
>>> all((0, True, False))
# False
>>> all({1, 1, 1})
# True