Booleans in Python No Boolean type Conditions return 0 or 1 (for false or true, respectively) In Python 2.2.1 and later, True and False are defined as 1, 0 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)