From d0918b2576abcefcfca1f439e3b03511f1be0b89 Mon Sep 17 00:00:00 2001 From: kakakaya Date: Wed, 30 Nov 2016 21:01:27 +0900 Subject: [python3/en] Add empty tuple to "False if evaluated" list (#2587) --- python3.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3.html.markdown b/python3.html.markdown index 839d66fd..04d103f4 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -143,13 +143,13 @@ None # => None "etc" is None # => False None is None # => True -# None, 0, and empty strings/lists/dicts all evaluate to False. +# None, 0, and empty strings/lists/dicts/tuples all evaluate to False. # All other values are True bool(0) # => False bool("") # => False bool([]) # => False bool({}) # => False - +bool(()) # => False #################################################### ## 2. Variables and Collections -- cgit v1.2.3