truthiness

Truth value of empty set

Truth value of empty set Question: I am interested in the truth value of Python sets like {‘a’, ‘b’}, or the empty set set() (which is not the same as the empty dictionary {}). In particular, I would like to know whether bool(my_set) is False if and only if the set my_set is empty. Ignoring …

Total answers: 3