diff --git a/content/blog/2024-08-26-layman-guide-python-built-in-functions.md b/content/blog/2024-08-26-layman-guide-python-built-in-functions.md index 733d34d..aafa8bf 100644 --- a/content/blog/2024-08-26-layman-guide-python-built-in-functions.md +++ b/content/blog/2024-08-26-layman-guide-python-built-in-functions.md @@ -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: @@ -229,6 +229,8 @@ True False >>> all([1, 2, 3]) True +>>> all([]) +True ``` [Back](#quick-jump-list)