FOP: Module 3

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

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:53 PM on 10/4/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

Operator

A symbol that performs mathematical or logical operations on variables or values (operands) and returns a result.

2
New cards

Addition Operator (+)

Adds two values and returns their sum.

3
New cards

Subtraction Operator (-)

Subtracts the second value from the first and returns their difference.

4
New cards

Multiplication Operator (*)

Multiplies two values and returns their product.

5
New cards

Division Operator (/)

Divides the first value by the second and returns their quotient as a float.

6
New cards

Floor Division Operator (//)

Divides one value by another and returns the quotient rounded down to the next whole number.

7
New cards

Modulus Operator (%)

Divides one value by another and returns the remainder.

8
New cards

Exponentiation Operator (**)

Raises the first value to the power of the second value.

9
New cards

Logical Operators

Operators used to combine or modify conditional statements, including 'not', 'and', and 'or'.

10
New cards

Logical 'not' Operator

Inverts a Boolean value; converts True to False and False to True.

11
New cards

Logical 'and' Operator

Evaluates to True only if both conditions on either side are True.

12
New cards

Logical 'or' Operator

Evaluates to True if at least one of the conditions is True; returns False only if both are False.

13
New cards

Logical Operator Precedence

The order of execution for logical operators in Python

14
New cards

Relational Operators

Operators used to compare two values, such as ==, !=, >,

15
New cards

Conditional Statements

Also known as decision-making statements, these control the flow of execution by running specific code blocks based on whether a condition is True or False.

16
New cards

If Statement

A conditional statement that evaluates a Boolean expression and executes its indented block of code only if the condition is True.

17
New cards

If-Else Statement

A conditional statement where the 'if' block executes if the condition is True, and the 'else' block executes if the condition is False.

18
New cards

Elif Statement

Short for 'else if', it allows checking multiple sequential conditions and executes its block as soon as a True condition is found.

19
New cards

Cascade

A sequence of subsequent if-elif-else statements used to test multiple conditions in order.

20
New cards

Nested Conditional Statements

An 'if' or 'if-else' statement placed inside another 'if' or 'else' block to check sub-conditions.

21
New cards

Indentation in Python

The use of leading spaces (standardly 4 spaces) to define blocks of code in structures like conditionals and functions instead of using curly braces.

22
New cards

Suite

A group of individual statements that form a single code block under a header line (such as in an if statement).

23
New cards

Pass Statement

A placeholder statement used in empty code blocks (like an 'if' body) to prevent syntax errors when no code needs to be executed.