# Operator

Operators are used to perform mathematical operations on the values of two or more variables.

In the last article, we learn about the basic arithmetics.

There are `%`, `**`, and `//` operators that are used to perform modulo, exponentiation, and integer division.

Modulo is the remainder of a division, exponentiation means raising a number to a power, and integer division is the division of two numbers without a remainder.

``5 % 25 ** 25 // 2``

## Assignment Operators​

Assignment operators are used to perform operations and assign that value to a variable.

``x = 5x += 2``

The code above adds 2 to the variable and assigns the result to x.

``x = 5x = x + 2``

The code above does the exact ame thing but is more repetitive.

There are assignment operators of every arithmetic operators `-=`, `_=`, `/=`, `**=`, `%=`, `//=`.

## Comparison Operators​

Comparison Operators compare two values and return a boolean value.

``5 > 25 < 25 == 25 != 25 >= 25 <= 2``

Note that they return boolean values.

`==` returns whether two values are the same while `!=` returns whether two values are different.

## Logical Operators​

Logical operators are used to combine boolean values.

``True and TrueTrue and FalseFalse and TrueFalse and FalseTrue or TrueTrue or FalseFalse or TrueFalse or False``

## Python Quiz 8

4 Questions
Different Operators