Knowledge Card - Truth Tables
Truth Tables
-
AND Operator: True only if both operands are true.
- Example:
True and False
results inFalse
.
- Example:
-
OR Operator: True if at least one operand is true.
- Example:
True or False
results inTrue
.
- Example:
-
NOT Operator: Negates the truth value of an operand.
- Example:
not True
results inFalse
.
- Example:
-
Compound Conditions: Combine multiple conditions using logical operators.
- Example:
(x > 5) and (y < 10)
evaluates toTrue
if both conditions are met.
- Example: