Skip to content

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

Untitled.png

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.

titled%201.png

02.png

Examples:

%203.png