Booleans in Python Traditional Python: Conditions return 0 or 1 (for false, true) As of Python 2.3 bool type: True, False All Python built-in types can be used in Boolean exprs numbers: 0 is False anything else is true string: empty string is False, any other is true None: False Boolean operators: and, or, not (short circuit, operational)