All operators in python

 # OPERATOR TYPES IN PYTHON



# Arithmetic Operators
# Assignment operators
# Comparision operators
# Logical Operators
# Identity Operators
# Membership Operators
# Bitwise Operators




# Arithmetic Opertors...
print("4 + 5  =",4 + 5)
print("4 * 5  =",4 * 5)
print("4 / 5  =",4 / 5)
print("4 - 5  =",4 - 5)
print("4 % 5  =",4 % 5)
print("4 // 5 =",4 // 5)
print("4 ** 5 =",4 ** 5)



# Assignment Operators
=   4
+=  4
/=  4
*=  4


# Comparision Operator
== 
!=
>= 
<= 
< 
> 


# Logical Operators
= True
= False
print(a is not b)
print(a or b)
print(a and b)



# Membership Operators
myslist = [34687,4,34,34,3,43]
print23 in myslist)
print3 not in myslist)


Bitwise Operator
0 = 00
1 = 01
2 = 10
3 = 11

print(1 & 0)
print(1 | 0)

Comments