#Types of Operators : # 1. Arithmetic operator :- #print("10 + 5 is", 10 +5 ) # Plus #print("10 - 5 is", 10 -5 ) # Minus #print("10 * 5 is", 10 *5 ) # Multiplication #print("10 / 5 is", 10 /5 ) # Division #print("10 // 5 is", 10 //5 ) # Floor Division #print("10 ** 5 is", 10 **5 ) # Exponent (It's work as a square) #print("10 % 5 is", 10 %5 ) # Modulas (It's give us remainder) # 2. Assignment operator :- x = 5 #x += 7 # x = x + 7 , Assignment Plus #x -= 7 # x = x - 7 , Assign Minus #x /= 5 # x = x / 5 , Assign Divide #x //= 5 # x = x // 5 , Assign Floor Division #x *= 5 # x = x * 5 , Assign Multiply #x **= 2 # x = x ** 2 , Assign Exponent #x %= 3 # x = x % 3 , Assign Modulas #print(x) # 3. Comparison operator :- i = 5 #print(i == 5) # Equal to #print(i <= 9) # Less than or Equal to #print(i >= 3) # Greater then or Equal to #print(i != 7) # Not Equal to #print(i < 8) # Less than #print(i > 4) # Greater than # 4. Logical operator :- a = True b = False print(a and a) # Dono True ho to True print hogaa print(a and b) # Agar True and False ho to false print hoga print(b and b) # Dono False ho to False prit hoga print(a or b) # Agar True or False ho to True print hoga print(a or a) print(b or b) # 5. Identity operator :- c = 7 d = 8 print(c is d) print(c is not d) # 6. Membership operator :- list = [ 5, 6, 67, 89, 93, "dipu" ] print(67 in list) print(765 not in list) # 7. Bitwise operator :- # Boolean logic padhna pdega eske liye joki mujhe bilkul nhi aata