1/9
These flashcards focus on key concepts and definitions related to decision structures and Boolean logic as covered in the lecture.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
A logical design that controls the order in which a set of statements execute based on conditions.
Decision Structure
A control structure that performs specific actions if a condition is met.
If Statement
An operator that determines whether a specific relationship exists between two values.
Relational Operator
An expression that evaluates to true or false, typically used in conditional statements.
Boolean Expression
A dual alternative decision structure that executes one block of code if the condition is true and another block if the condition is false.
If-else Statement
A decision structure placed inside another decision structure to handle more complex conditions.
Nested Decision Structure
Operators that combine or modify Boolean expressions; includes and, or, and not.
Logical Operators
A Python operator (:=) that allows for assignment expressions, assigning a value to a variable while evaluating it.
Walrus Operator
A variable that can hold one of two values: True or False.
Boolean Variable
An expression that returns one value if a condition is true and another if it is false, written as 'valueiftrue if condition else valueiffalse.'
Conditional Expression