3.1.1.
Numbers
The interpreter acts as a simple calculator: you can type an expression at it and
it will write the value. Expression syntax is straightforward: the operators +, -,
* and / can be used to perform arithmetic; parentheses (()) can be used for
grouping. For example:
>>>
2 + 2
4
50 - 5*6
20
(50 - 5*6) / 4
5.0
8 / 5 # division always returns a floating-point number
1.6