Arithmetic Operators

In this lesson, we'll learn how to perform calculations using arithmetic operators.

Below, we can find the basic arithmetic operators in order of precedence. The operator listed higher will be computed first.

These operators allow us to perform arithmetic operations in Python.

Operator Purpose Notation
() Parentheses Encapsulates the Precedent Operation
** Exponent In-fix
%, *, /, // Modulo, Multiplication, Division, Floor Division In-fix
+, - Addition, Subtraction In-fix

Addition #

We can add two numbers using the + operator:

Get hands-on with 1200+ tech skills courses.