Operators in Python
An operator is a symbol that performs an operation. Some examples of operations are addition, subtraction, multiplication etc.
a + b is an operation where a,b are operands and ‘+’ is an operator. Following are some of the operators that are available in python
Arithmetic Operators – To Perform basic arithmetic operations like addition, subtraction, division etc
Assignment Operators – Useful to store Right Hand Side value to Left Hand side Variable.
Unary Minus Operator – To Negate a value
Relational Operator – To Compare two quantities
Logical or Boolean Operators- To construct compound conditions
Membership Operators – To test for a membership in a sequence
Identity Operators – To compare the memory locations of two objects