In [5]:
10 / 3
Out[5]:
In [6]:
float(10) / 3
Out[6]:
In [7]:
10.0 / 3
Out[7]:
To change this behaviour:
In [8]:
from __future__ import division
In [9]:
10 / 3
Out[9]:
In [10]:
10 // 3
Out[10]: