Knowledge Card - Truth Tables

Truth Tables

  1. AND Operator: True only if both operands are true.

    • Example: True and False results in False.
  2. OR Operator: True if at least one operand is true.

    • Example: True or False results in True.
  3. NOT Operator: Negates the truth value of an operand.

    • Example: not True results in False.
  4. Compound Conditions: Combine multiple conditions using logical operators.

    • Example: (x > 5) and (y < 10) evaluates to True if both conditions are met.