These operators enable basic arithmetic (addition, subtraction, multiplication, etc.) of values and variables. Most can operate on and return any numeric data type. Division in Python will always result in a float data type.
syntax
Operator
Name
Description
Syntax
Result
+
add
add operands
1 + 2
3
-
subtract
subtract operands
3 - 2
1
*
multiply
multiply operands
4 * 5
20
/
divide
divide value by operand
20 / 5
4.0
%
modulo
divide value by operand and return the remainder
10 % 9
1
**
exponent
value to the power of operand
2 ** 3
8
//
floor division
value divided by operand and return integer without decimals