1/21
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Boolean
Python data type representing True or False.
Boolean Values
Only two possible values: True or False.
Boolean Expression
Evaluates to either True or False.
Comparison Expression
Compares two values using operators.
Equality Operator
x == y means x is equal to y.
Inequality Operator
x != y means x is not equal to y.
Greater Than Operator
x > y means x is greater than y.
Less Than Operator
x < y means x is less than y.
Greater Than or Equal To
x >= y means x is greater or equal to y.
Less Than or Equal To
x <= y means x is less than or equal to y.
Logical Operators
Includes and, or, not for combining conditions.
And Operator
True if both operands are True.
Or Operator
True if at least one operand is True.
Not Operator
Inverts the truth value of an operand.
Order of Operations
Arithmetic > Comparisons > Logical operations.
Conditional Statement
Executes code based on Boolean expression.
If Statement
Executes if the condition is True.
Else Statement
Executes if the condition is False.
Elif Statement
Checks additional conditions in a chain.
Nested Conditionals
Conditionals within other conditionals.
Variable Naming
Gives meaning to Boolean expressions.
Triangle Types
Classifies triangles as EQUILATERAL, ISOSCELES, SCALENE.