Shared Flashcard Set

Details

03- Conditional execution
Python for Informatics - Dr. Charles Severance
13
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
body
Definition
The sequence of statements within a compound statement.
Term
boolean expression
Definition
An expression whose value is either True or False.
Term
branch
Definition
One of the alternative sequences of statements in a conditional state- ment.
Term
chained conditional
Definition
A conditional statement with a series of alternative branches.
Term
comparison operator
Definition
One of the operators that compares its operands: ==, !=, >, <, >=, and <=.
Term
conditional statement
Definition
A statement that controls the flow of execution depend- ing on some condition.
Term
condition
Definition
The boolean expression in a conditional statement that determines which branch is executed.
Term
compound statement
Definition
A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.
Term
guardian pattern
Definition
Where we construct a logical expression with additional com- parisons to take advantage of the short-circuit behavior.
Term
logical operator
Definition
One of the operators that combines boolean expressions: and, or, and not.
Term
nested conditional
Definition
A conditional statement that appears in one of the branches of another conditional statement.
Term
traceback
Definition
A list of the functions that are executing, printed when an exception occurs.
Term
short circuit
Definition
When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the ex- pression without needing to evaluate the rest of the expression.
Supporting users have an ad free experience!