Different languages have different rules around some math operators, notably around order of operations and how % and / handle floating point values. There are much simpler expressions that will yield differences.
Also, you appear to be using Python 2, the results are different with any modern version of Python.
Also, you appear to be using Python 2, the results are different with any modern version of Python.