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
Boolean operators
This table summarizes the operators we can use with boolean types:
Order of precedence
Order of precedence
^
not
and
or
To be absolutely clear, be generous with parentheses!
Next: Type-hinting and mypy