python-distilled icon indicating copy to clipboard operation
python-distilled copied to clipboard

2.7 BooleanExpressionsandTruthValues

Open phils4000 opened this issue 2 years ago • 2 comments

Is there any reason sets are not included in below sentence ? "When you use an expression to determine a true or false value, True , any nonzero number, a nonempty string, list, tuple, or dictionary is taken to be true. False , zero, None , and empty lists, tuples, and dictionaries evaluate as false."

phils4000 avatar Nov 25 '23 17:11 phils4000

I forgot?

dabeaz avatar Nov 25 '23 17:11 dabeaz

OK thanks, just checking I wasn't missing something in my understanding.

phils4000 avatar Nov 25 '23 18:11 phils4000

Added to errata. Thanks!

dabeaz avatar May 23 '24 01:05 dabeaz