# Arithmetic operators in Python

Python arithmetic operators perform mathematical operations like addition, subtraction, multiplication, etc. Let’s understand the following:-

## Arithmetic operators in Python

A simple example code shows the basic arithmetic operations i.e. Arithmetic operators are used with numeric values to perform common mathematical operations:

``````x = 15
y = 5

print('x + y =', x + y)

print('x - y =', x - y)

print('x * y =', x * y)

print('x / y =', x / y)

print('x // y =', x // y)

print('x ** y =', x ** y)
``````

Output:

These operators can be combined and used in expressions to perform more complex calculations. Additionally, parentheses can be used to specify the order of operations (precedence) when needed.

Do comment if you have any doubts or suggestions on this Python operators topic.

Note: IDE: PyCharm 2021.3.3 (Community Edition)

Windows 10

Python 3.10.1

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.