voidex/20-29 Areas/20 Programming/20.01 Python/arithmeticOperators.md

1.4 KiB

title tags aliases
arithmeticOperators
python
math
operators
syntax
math operators
arithmetic operations
python math

[!note] Math Operators in Python
Python supports standard arithmetic operations:

[!example] Operator Table

Operator Description Example Result
+ Addition 2 + 3 5
- Subtraction 5 - 2 3
* Multiplication 2 * 3 6
/ Division (float) 5 / 2 2.5
// Floor Division 5 // 2 2
% Modulo (remainder) 5 % 2 1
** Exponentiation 2 ** 3 8

[!info]- 🔗 Related Notes