Python - Introduction
An operator is a symbol that tells the compiler to perform specific mathematical or logical functions.
Arithmetic Operators
The following table shows all the arithmetic operators supported by the Python. Assume variable A holds 5 and variable B holds 10 then
| Operator | Description | Example | 
|---|---|---|
| + | Adds two operands | A+B=AB | 
| - | Subtracts second operand from the first | A-B=AB | 
| * | Multiplies both operands | A*B=AB | 
