From 6ab303b1fc46be0fc1777827e513f5a93d7463a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naida=20Agi=C4=87?= <31072002+naidaagic@users.noreply.github.com> Date: Mon, 19 Nov 2018 09:36:27 +0100 Subject: [PATCH] Added another example which returns False (#22794) --- guide/english/python/bool-function/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/python/bool-function/index.md b/guide/english/python/bool-function/index.md index 0fa7843101..afe4357b25 100644 --- a/guide/english/python/bool-function/index.md +++ b/guide/english/python/bool-function/index.md @@ -50,6 +50,7 @@ There are three Boolean Operators they are `and`, `or`, and `not`. print(bool(-4)) # Returns True as -4 is a non-zero value print(bool(0)) # Returns False as it is a zero value print(bool('dskl')) # Returns True as the string is a non-zero value + print(bool('')) # Returns False as the string is a zero value print(bool([1, 2, 3])) # Returns True as the list is a non-zero value print(bool((2,3,4))) # Returns True as tuple is a non-zero value print(bool([])) # Returns False as list is empty and equal to 0 according to truth value testing