Arithmetic Operators in Python
Arithmetic Operators in Python
Blog Article
Python supports the following arithmetic operators:
-
+
Addition -
-
Subtraction -
*
Multiplication -
/
Division -
//
Floor division -
%
Modulus -
**
Exponentiation
These help perform basic mathematical operations. Example: a, b = 10, 3 print(a % b) # Output: 1