{article Examples__Python 3.4 }{title} {text}{/article}
Python operators
Command | Name | Example | Output |
---|---|---|---|
+ | Addition | 4 + 5 | 9 |
- | Subtraction | 8 - 5 | 3 |
* | Multiplication | 4 * 5 | 20 |
/ | Division | 19 / 3 | 6 |
% | Remainder | 19 % 3 | 1 |
** | Exponent | 2 ** 4 | 16 |