AI engineering glossary · Python core

What is arithmetic operator?

Arithmetic operator: An operator that performs a mathematical calculation: + addition, - subtraction, * multiplication, / true division, // floor division, % modulo and ** exponentiation. Division with / always returns a float, even when the result is whole.

Level: beginnerTopic: Python core

Arithmetic operator: an example

7 / 2 gives 3.5, 7 // 2 gives 3, 7 % 2 gives 1 and 2 ** 3 gives 8.

Related terms

More Python core terms

Where you learn it

Arithmetic operator is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.