If i run following on python2.7 console it giving me output as:
>>> 1.2 - 1.0
0.19999999999999996
>>> print 1.2 - 1.0
0.2
While i am running same operation in python3.5.2
>>> 1.2 - 1.0
0.19999999999999996
>>> print(1.2 - 1.0)
0.19999999999999996
I want to know why in python2.7.12 print statement giving me only 0.2 but in python3.5.2 print function giving me 0.19999999999999996.