what is the difference between division and floor division in python?
The former is floating point division, and the latter is floor division, sometimes also called integer division. In Python 2.2 or later in the 2. ... Regardless of the future import, 5.0 // 2 will return 2.0 since that's the floor division result of the operation.