Operator |
Description |
Example |
---|---|---|
+ |
Adds values |
x + y + z = 5 |
- |
Subtracts values |
num1 – num2 = 3 |
* |
Multiplies values |
x * y = 9 |
/ |
Divides the left operand by the right operand |
b / a = 3 |
% |
Divides the left operand by the right operand and returns the remainder |
x % a = 0 |
** |
Performs an exponential (power) calculation on operators |
a**b =9 |