Python's operators are similar to other languages, mainly:
Arithmetic operators, comparison operators, logical operators, assignment operators, member operators, bitwise operators
----------------------------------------
Arithmetic operators:
>>>print 2+3 # Addition
>>>print 3.3-4 # Subtraction
>>>print 3*5 # multiplication
>>>print 3/2 # Division
>>>print 3.0/2 # Division
>>>print 5//2 # divisible method
>>>print 3**2 # exponentiation, returns 3 squared
>>>print 10%3 # modulo-seeking remainder
----------------------------------------
Comparison operators:
>>>print 5==6 # Compares two numbers for equality and returns true for equality
>>>print 8!=9 # does not equal, compares two numbers for equality, not equal returns True
>>>print 7<>7 # does not equal, compares two numbers for equality, not equal returns True
>>>print 3<3, 3<=3 # <, less than; <=, less than or equal to
>>>print 4>5, 4>=0 #, greater than; >=, greater than or equal to
----------------------------------------
Logical operators:
>>>print true and True, True and False # and, "and" operations, both true are true
>>>print true or False # or, "or", one of which is true is true
>>>print not True # not, "non" operation, negation
----------------------------------------
Member operators:
>>>print 5 in [1,3,5,7,9] # returns True if the value is found in the specified sequence, otherwise false is returned.
>>>print 4 Not in [1,3,5,7,9] # returns True if no value is found in the specified sequence, otherwise false is returned.
----------------------------------------
Assignment operators:
Adding ' = ' after arithmetic operators can be converted to arithmetic operators, such as:
A + = B is equivalent to a = a + B, and so on
>>> A = 2
>>> B = 3
>>> A + = b
>>> A
5
Python Basic 5-operator