Operators in Python


Math operators in Python

Operator

+

*

/

%

//

Description

Addition

Subtraction

Multiplication

Division

Modulus

Floor Division

Example

1 + 3.5

1 – 3.5

1 * 3.5

1 / 3.5

7 % 3

7 // 3

Output

4.5

-2.5

3.5

0.2857142857142857

1

2