# Operators in python

In this tutorial you will learn about operators in python and it’s types which is symbol used to perform specific mathematical and logical manipulation.

## Types of operators

• Arithmetic operator

Arithmetic operator is basically used to perform mathematical computation like addition, subtraction, multiplication and division.

Examples :

```m=10
n=4
print("m+n=",m+n)
print("m-n=",m-n)
print("m*n=",m*n)
print("m/n=",m/n)
print("m//n=",m//n)
print("m**n=",m**n)```

Output:

```m+n=14
m-n=6
m*n=40
m/n=2.5
m//n=2
m**n=10000```
• Comparison operator

The operator which is used to compared two or more values is known as comparison operator. It return True or False boolean value according to condition.

Examples:

```m=15
n=5
print("m>n=",m>n)
print("m<n=",m<n)
print("m==n=",m==n)
print("m!=n=",m!=n)
print("m>=n=",m>=n)
print("m<=n=",m<=n)```

Output :

```m>n=True
m<n=False
m==n=False
m>=n=True
m<=n=False```
• Logical operator

Logical operator are operator which is used for conditioning a statement. ‘and, or, not ‘ are logical operator.

Example :

```x=True
y=False
print(m and y)
print(m or y)
print(not m)```

Output :

```False
True
False```
• Bitwise operator
• Assignment operator