1/13
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Sequence Structures
A set of statements that execute in the order they appear
Control Structure
Logical design that controls the order in which a set of statements execute
Decision Structure
Specific actions performed only if a condition exists. Also known as a selection structure.
Logical Operators
Special operators in Python: 'not', 'and', and 'or', used to manipulate Boolean values.
Short-circuit evaluation
Deciding value of a compound Boolean expression after evaluating only one sub expression.
Exceptions
These are handled with try-except blocks.
Simple If Statement
The simplest kind of if statement with one test and one action.
Indentation
Plays the same role in if statements as it does in for loops. All indented lines after an if statement will be executed if the test passes, and the entire block of indented lines will be ignored if the test does not pass.
If-Else Statements
Dual-Alternative Decision Structure with two possible paths of execution.
If-Elif-Else Chain
A structure used to test more than two possible situations. Python executes only one block in an if-elif-else chain.
Boolean Expression
A conditional test that results in a Boolean value (True or False).
Try-Except Block
A construct used to handle exceptions in Python. It allows the program to continue running even if an error occurs.
While Loop
A loop that repeatedly executes a block of code as long as a specified condition is true.
Break Statement
A statement used to exit a loop prematurely, before the loop condition is met.