Making Decisions with Python - Vocabulary Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key terms related to Python operators, operator precedence, control statement types, and conditional structures.

Last updated 12:04 AM on 8/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Operators

Symbols used to perform arithmetic and logical operations on operands and produce a meaningful result.

2
New cards

Operands

One or more values or variables required by an operator to carry out an operation.

3
New cards

Expression

A valid combination of operands and operators that returns a computed result.

4
New cards

Arithmetic Operators

Operators used to perform basic mathematical calculations, such as addition (+), subtraction (-), multiplication (), division (/), floor division (//), remainder (%), and exponentiation (*).

5
New cards

Division Operator (/)

An arithmetic operator used to divide numbers and produce an output in decimal form.

6
New cards

Floor Division Operator (//)

An arithmetic operator used to divide numbers and produce an output in integer form.

7
New cards

Remainder Operator (%)

An arithmetic operator used to find the remainder when one value is divided by another.

8
New cards

Exponentiation Operator (**)

An arithmetic operator used to calculate the power of one number raised to another.

9
New cards

Relational Operators

Operators used to compare the values of variables and determine the result in a boolean expression, which is either True or False.

10
New cards

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.

11
New cards

and Operator

A logical operator that returns True only if both conditions being evaluated are True.

12
New cards

or Operator

A logical operator that returns True if at least one of the conditions being evaluated is True.

13
New cards

not Operator

A logical operator that reverses the result of a condition, returning True if the result is False and vice versa.

14
New cards

Precedence

The priority order of an operator according to which it is evaluated in an expression involving more than one operator.

15
New cards

Associativity

The direction of execution ("Left to Right" or "Right to Left") when two or more operators in an expression have the same precedence.

16
New cards

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.

17
New cards

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.

18
New cards

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.

19
New cards

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.

20
New cards

if Statement

A conditional statement used to check a condition, running the code inside its block if True, and skipping it if False.

21
New cards

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.

22
New cards

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.

23
New cards

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'.