operators and expressions his describes python' built-in operatorsexpressionsand evaluation rules although much of this describes python' built-in typesuser-defined objects can easily redefine any of the operators to provide their own behavior operations on numbers the following operations can be applied to all numeric typesoperation description / * - + addition subtraction multiplication division truncating division power (xymodulo ( mod yunary minus unary plus the truncating division operator (//also known as floor divisiontruncates the result to an integer and works with both integers and floating-point numbers in python the true division operator (/also truncates the result to an integer if the operands are integers therefore / is not howeverthis behavior changes in python where division produces floating-point result the modulo operator returns the remainder of the division / for example is for floating-point numbersthe modulo operator returns the floating-point remainder of /ywhich is ( /yy for complex numbersthe modulo (%and truncating division operators (//are invalid the following shifting and bitwise logical operators can be applied only to integersoperation description < > ~ left shift right shift bitwise and bitwise or bitwise xor (exclusive orbitwise negation lib fl ff