logical bitwise assignment membership identity each of these categories performs specific task for examplethe arithmetic operators perform math-based taskswhile relational operators perform comparisons the following sections describe the operators based on the category in which they appear unary unary operators require single variable or expression as input you often use these operators as part of decision-making process for exampleyou might want to find something that isn' like something else table - shows the unary operators table - python unary operators operator description example inverts the bits in number so that all the bits become bits and vice versa ~ results in value of - negates the original value so that positive becomes negative and vice versa -(- results in and - results in - is provided purely for the sake of completeness this operator returns the same value that you provide as input + results in value of arithmetic computers are known for their capability to perform complex math howeverthe complex tasks that computers perform are often based on much simpler math taskssuch as addition python provides access to libraries that help you perform complex math tasksbut you can always create your own libraries of math functions using the simple operators found in table -