1/22
Vocabulary flashcards covering key terms related to Python operators, operator precedence, control statement types, and conditional structures.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Operators
Symbols used to perform arithmetic and logical operations on operands and produce a meaningful result.
Operands
One or more values or variables required by an operator to carry out an operation.
Expression
A valid combination of operands and operators that returns a computed result.
Arithmetic Operators
Operators used to perform basic mathematical calculations, such as addition (+), subtraction (-), multiplication (), division (/), floor division (//), remainder (%), and exponentiation (*).
Division Operator (/)
An arithmetic operator used to divide numbers and produce an output in decimal form.
Floor Division Operator (//)
An arithmetic operator used to divide numbers and produce an output in integer form.
Remainder Operator (%)
An arithmetic operator used to find the remainder when one value is divided by another.
Exponentiation Operator (**)
An arithmetic operator used to calculate the power of one number raised to another.
Relational Operators
Operators used to compare the values of variables and determine the result in a boolean expression, which is either True or False.
Logical or Boolean Operators
Operators (and, or, not) that evaluate one of two states, True or False, and are used to combine or reverse relational expressions.
and Operator
A logical operator that returns True only if both conditions being evaluated are True.
or Operator
A logical operator that returns True if at least one of the conditions being evaluated is True.
not Operator
A logical operator that reverses the result of a condition, returning True if the result is False and vice versa.
Precedence
The priority order of an operator according to which it is evaluated in an expression involving more than one operator.
Associativity
The direction of execution ("Left to Right" or "Right to Left") when two or more operators in an expression have the same precedence.
Control Statements
Statements used to govern or alter the flow of execution in a program by repeating or skipping statements based on a given condition.
Sequential Construct
A program flow construct where each statement is executed one after the other in the exact order they appear, with no decision-making or branching.
Conditional Statements
Control statements (also known as decision-making statements) that transfer program control to a specific location depending on the outcome of a conditional expression.
Iterative Statements
Control statements (also known as looping statements) that enable the execution of a set of statements to be repeated as long as a given condition remains True.
if Statement
A conditional statement used to check a condition, running the code inside its block if True, and skipping it if False.
Indentation
A required formatting in Python where statements inside a conditional block must start with a tab or 4 spaces after a colon, otherwise Python displays an error.
if…else Statement
A control structure used when there are two possible actions, executing the 'if' block if the condition evaluates to True and the 'else' block if it evaluates to False.
if…elif…else Statements
A conditional structure providing a compact way to perform multiple tests on a condition, where 'elif' is short for 'else if'.