Operators In Python : Arithmetic Operators
Operators are symbols which can manipulate the value of operands by performing mathematical and logical operations.
Consider the expression 2 + 3 = 5.here, 2 and 3 are operands and + is operator.
Operators In Python
Python supports following types of operators.
- Arithmetic Operators
- Assignment Operators
- Logical Operators
- Comparison (Relational) Operators
- Bitwise Operators
- Identity Operators
- Membership Operators
Now we will see different Arithmetic Operators and how to implement arithmetic operations in python.
Python Arithmetic Operators
It is used to add values on either side of the operator and give the result.
It is used to subtracts values of right- hand operand from left-hand operand.
It is used to multiplies values on both sides of the operator.
It is used to divide left-hand operator by right-hand operator.
It is used to divide left-hand operator by right-hand operator and returns the remainder.
It is used to calculates the exponential power.
It is used to the division of operands here the result is the quotient in which the digits after decimal points are removed.
Now we will see the implementation of Arithmetic Operators by the following example.