Operators are used to perform operations on variables and values.

There are different types of operators:

Arithmetic --> +, -, *, /, //, %, **
Relational / Comparison --> = =,! =, >, <, > =, < =
Assignment --> =, +=, -=, *=, /=
Logical --> and, or, not

example

sum = a + b
sum = a + b
    |   | |
    |   | └── operand
    |   └──── operator (+)
    └────────── assignment operator (=)

<< Python Style Guide | Python Arithmetic Operators >>