Python Arithmetic Operations

Python’s Math Operators
Operators are used to process numbers in Python. Process means to solve whatever the expression demands.

Operators Operation
+ Addition
Subtraction
* Multiplication
/ Division
% Modulus

NOTE: A modulus is an operator that gets the remainder if the dividend has been divided by a divisor. For example: 10%4=2. 10 divided by 4 is equals to 2, and there is a remainder of 2 which is no longer divisible by 4. The main use of a modulus is to determine if the dividend is divisible by the divisor, and if the answer will be a whole number. A whole number answer gives a zero result when used with a modulus.

Expressions
An expression is comprised of values and an operator. Examples:
2+2
2*2
2/3+(2*5)

Variables
A value can be stored to a variable and be used in an expression. Examples:
a=2
b=3
a+b
5