Division in Python 2 vs 3

One major change in Python 3 is the implementation of the division operator /. In Python 2 the division yielded a floor rounded integer when dividing two integers but a float when using a float as divider or divisor. Due to Python’s weakly typed nature this behavior could lead to some issues. So PEP-238 changed…