Mar 23, 2025
None instead of the instance.False include None, False, zero of any numeric type, empty sequences and collections.repr() or str().True unless defined otherwise with __bool__() returning False or __len__() returning 0.x or y: Returns x if x is True, else y.x and y: Returns x if x is False, else y.not x: Returns True if x is False, else False.<, <=, >, >=, ==, !=, is, is not.x < y <= z.int, float, complex.or, xor, and, shifts left/right, bit inversion.list, tuple, range.str (unicode strings).set, frozenset.dict.__name__, __module__, __doc__.