4.5 Detecting ranges using logical operators¶
- A logical operator treats operands as being True or False, and evaluates to True or False
- Logical operators include AND, OR, and NOT
Booleans and logical operators¶
- A Boolean refers to a value that is either True or False.
- Note that True and False are keywords in Python and must be capitalized.
Examples: