Python division - difference between /
and //
.
- division
- integer
>>> 7/3 # Python 3.x
2.3333333333333335
>>> 7/3 # Python 2.x
2
>>> 7//3 # Python 3.x
2
Python division - difference between /
and //
.
>>> 7/3 # Python 3.x
2.3333333333333335
>>> 7/3 # Python 2.x
2
>>> 7//3 # Python 3.x
2