Basics
Basics
Numbers:
>>> 2 + 2
4
>>> 50 - 5*6
20
>>> (50 - 5*6) / 4
5.0
>>> 8/5 # division always returns a floating-point number
1.6
Last updated
Numbers:
>>> 2 + 2
4
>>> 50 - 5*6
20
>>> (50 - 5*6) / 4
5.0
>>> 8/5 # division always returns a floating-point number
1.6
Last updated