Chap. 3 (Conds Execution & Exception Handling) Flashcards
Learning programming language for Data Science
Define Body
The sequence of statements within a compound statement.
Define Boolean Expression
An expression whose value is either True or False.
Define Branch
One of the alternative sequences of statements in a conditional statement.
Define Chained Conditional
A conditional statement with a series of alternative branches.
Define Comparison Operator
One of the operators that compares its operands: ==, !=, >, <, >=, and <=.
Define Conditional Statement
A statement that controls the flow of execution depending on some condition.
Define Condition
The boolean expression in a conditional statement that determines which branch is executed.
Define Compound Statement
A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.
Define Guardian Pattern
Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior.
Define Logical Operator
One of the operators that combines boolean expressions: and, or, and not.
Define Nested Conditional
A conditional statement that appears in one of the branches of another conditional statement.
Define Traceback
A list of functions that are executing, printed when an exception occurs.
Define Short Circut
When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the expression without needing to evaluate the rest of the expression.