 # Operators In Python

Operators in python is a symbol that perform certain operation on one or more variable or a value.

There are 7 types of operators in python

• Arithmetic operators
• Comparison operators
• Assignment operators
• Logical operators
• Identity operators
• Membership operators
• Bitwise operators

### 1. Arithmetic operators

Arithmetic operators are used to solve arithmetic problems like Addition(+), Subtraction(-), Multiplication(*), Division(/) and so on.

You are familiar with Addition, Subtraction, Multiplication and Division. But maybe you are not familiar with remaining 3 arithmetic operators. Modulus, Exponentiation and Floor Division.

So, let me explain

Modulus : This operator will give us the reminder

Exponentiation : Raises the first number to the power of the second.

Floor Division : Division that results into whole number

These are the arithmetic operators in python.

### Comparison Operators

Comparison operators are used to compare two values in python.

These are the comparison operators in python.

### Assignment operators

In short assignment operators are used to assign values to variable.

These are the most basic assignment operators in python.

### Logical operators

These are conjunctions that we can use to combine more than one condition. There are three logical operators in python. AND, OR and NOT

We have studied this in our school time. “Logical Gates” same like that.

### Identity operators

This will return True if identity of both operands is True. Otherwise it return false. There are 2 identity operators in python

### Membership operators

Membership Operators are used to testing whether a value or variable is found in a sequence. See in and not in are the membership operators in python.

### Bitwise Operators In Python

Bitwise operators act on operands as if they were strings of binary digits In python. Here are some examples NOT, AND, OR, XOR, and so on. Have a look at this table.

This is all about operators in python.

If you have any doubt you can ask me on Instagram

Posts You may Like : Data Types In Python

##### You May Also Like ## Function in Python 3

Spread the loveAs you all know there are many built-in function is python 3. Like, range(), print(), map(), eval() and many more. Function in python is made for do some…  ## If-else In Python

Spread the loveIf-else in python used to check conditions. These statements are also used to make decisions. before we move further have a quick look at comparison operators, which we… ## Data Types In Python

Spread the loveIn python, there are various data types, but on the basis of their complexity they can be divided into two types :There are two types of data types… ## Python Lists 