 # 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 ## If-else In Python

If-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 will use… ## Loops In Python

There are 2 type of loops in python. for loop while loop Let’s have detailed information about loops in python. For loops in Python for loops in python used for… ## Python Lists

Lists are Non-Primitive data structure in python. Lists are the ordered collection of data. It is changeable. List contains different Primitive Data types like String, Integer, Float and Boolean. So…   