An operator is a symbol that takes one or more operands and operates on them to produce a result.
Actually, operators are the construct that is used to manipulate the value of the operands. In an expression, an operator is used on operands.
Python Operator Example
For example, in the expression mul=a*b, a and b are operands, and * is the operator.
a=90 b=80 mul=a*b print(mul)
Python Operators Type
Python supports different types of operators, which are given below.
- Arithmetic Operators
- Comparison(Relational) Operators
- Assignment Operators
- Logical Operators
- Unary Operators
- Bitwise Operators
- Membership Operators
- Identity Operators