Boolean type

bool

A boolean type has one of two values (think back to the Yes/No of the per_I variable).

  • The only 2 boolean literals: True, False (capitalization matters!)

Boolean operators

This table summarizes the operators we can use with boolean types:

Order of precedence

  • ^

  • not

  • and

  • or

To be absolutely clear, be generous with parentheses!