Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Python Arithmetic Operators?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___(x / y)3Order
Put the learning moves in the order that makes the concept easiest to apply.
Arithmetic operators are used with numeric values to perform common mathematical operations:
Division in Python
Arithmetic Operators
Arithmetic Operators
Arithmetic operators are used with numeric values to perform common mathematical operations:
| Operator | Name | Example |
|---|---|---|
| + | Addition | x + y |
| - | Subtraction | x - y |
| * | Multiplication | x * y |
| / | Division | x / y |
| % | Modulus | x % y |
| ** | Exponentiation | x ** y |
| // | Floor division | x // y |
Division in Python
Python has two division operators
- / - Division (returns a float)
- // - Floor division (returns an integer)
Example
x = 12
y = 5
print(x / y)Example
x = 12
y = 5
print(x // y)