Numbers

The interpreter of Python acts like a simple calculator. You can make operation like add, subtract(minus), multiply, divide.

Examples

Add

	
>>> 3 + 5 
8
>>> 125.5 + 2.5
128.0
>>> 134.7 + 3
137.7

Multiply

>>> 3 * 5
15
>>> (2 * 3) * 3
18
>>> (3 + 5) * 4
32

Divide

>>> 20 / 4
5.0
>>> 22 / 4
5.5
>>> 23 / 6
3.8333333333333335

Subtract

>>> 21 - 10
11	
>>> 17.8 - 2.5
15.3
>>> 23 - 3.2
19.8