operator in the python with example
# arthamatic operator
print(5+4)
print(5-4)
print(5*4)
print(5/4)
print(5//4) #ye value ko round of kar denga
print(5**3)
# assigment operatr
x=5
print(5) # you assign 5 in the x
x+=3 #you add some value in the x variable
print(x)
# comparsion operator
print(5 == 5) # match the number is same or not
print(5 != 5) # check the number is not same the give
#logical operator
print(True and True) #if both true then return true
print(True and False) #if both is mismatch then return false
print(True or False) #if any true then return true
#identity operator
print(5 is 5 ) # the check the value is same or not then return true
print(5 is 6)
print(5 is not 6) # if the condition is not true then return true
#member ship operator in python
list = [3,34,36,78,99,123,34,45,67,98]
print(3 in list) #its check 3 is avaiable in the given list or not f yes then return the true
print(3000 not in list) # the given value check in the given list not present
#bitwise operator
print(0 & 0)
print(0 & 1)
print(0 & 2)
print(0 | 2)
print(0 | 1)
Thanks you for commenting your questions. I will see question and respond you.