operations on sets the set and frozenset type support number of common set operationsoperation description len(smax(smin(sunion of and intersection of and set difference symmetric difference number of items in the set maximum value minimum value the result of unionintersectionand difference operations will have the same type as the left-most operand for exampleif is frozensetthe result will be frozenset even if is set augmented assignment python provides the following set of augmented assignment operatorsoperation description + - * / // ** % & | ^ >> << / * > < these operators can be used anywhere that ordinary assignment is used here' an examplea [ , "hello % %sa + [ + %("monty""python" [ "hello monty pythonaugmented assignment doesn' violate mutability or perform in-place modification of objects thereforewriting + creates an entirely new object with the value user-defined classes can redefine the augmented assignment operators using the special methods described in "types and objects lib fl ff