bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python/Foundations
Python•Foundations

Python Arithmetic Operators

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:

OperatorNameExample
+Additionx + y
-Subtractionx - y
*Multiplicationx * y
/Divisionx / y
%Modulusx % y
**Exponentiationx ** y
//Floor divisionx // 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)

Previous

Python Operators

Next

Python Assignment Operators