Why does integer division yield a float instead of another integer?
Take a look at PEP-238: Changing the Division Operator
The // operator will be available to request floor division unambiguously.
Oops, immediately found 2//2
. This will output an int rather than a float.