# Python Operators

Hey Folks, in this module we will learn Python Operators and their types with their order of precedence. This is the most important basic concept which is necessary to be known. So let’s start.

## Python operators

Python operators are used to performing various operations on different sets of variables and values. These operators once operate any two values at a time.

The use of multiple operators in a single set of equations leads to operator precedence.
Each operator has its own associativity as well as precedence. This order of precedence gives priority to each operator according to its level of precedence.

## Precedence and Associativity

Some important python supported operator precedence and associativity.

## Type of Operators

There are various operators used to perform various tasks in less time complexity, These are as follows: ### Arithmetic Operators

These operators are basically used to perform different mathematical operations.
For Example, we use the ‘+'(addition) operator for adding two or more values.
a = a ‘+’ c

To know arithmetic operators in depth. Let take two integer variables a and b of values
a= 10 and b= 20 of integer data type.

### Comparison (Relational) Operators

This operator is used to perform an operation in which some conditions are required which need to be satisfied, then further operation will be executed. It will always be either True(1) or False(0).

There are various conditional operators which are as follows:
Let’s take values X=2 and Y=4 of integer data type.

### Assignment Operators

This is a type of operator used to assign the value to variables. This is basically used to override the value of the operand. These are special Signs used for carrying logical, bitwise
Computation. These operators are as follows:

Let take A=5 and B=4 of integer data type.

### Logical Operators

The operator which used to perform logical operations like AND, OR, NOT. Mostly used in different arithmetic operations and logical computations. These are as follows:
Let x=2 and y=3 of integer data type.

### Identity Operators

This operator is used to identify and compare the values of two objects. There are two identity operators, which are:

### Bitwise Operators

This operator is used for performing various logical binary computations.
These operators are as follows:

### Membership Operators

This operator is used to verify that a sequence of elements is present in the object, List, Tuple, or string.

There are two membership operators.

In this module, we studied the use of Python operators with their precedence order. Hope you enjoy reading our content. To get a clear vision of the importance of Python please check out How to Become a Python Developer. Happy Learning 🙂