I am using python 2.7.18 and 3.8.10

In both version when i goto make some of two value i,e 194.6+891.8 = 1086.3999999999999

The answer should be : 1086.4 but giving 1086.3999999999999

I am using python 2.7.18 and 3.8.10

In both version when i goto make some of two value i,e 194.6+891.8 = 1086.3999999999999

The answer should be : 1086.4 but giving 1086.3999999999999

You discovered the limits of floating point math: https://0.30000000000000004.com/

You can use something like the stdlib decimal or fractions modules.

Is some more docs on floating points.