I had a very simple program written in Python 2.6: As follows z=[1.2,2.3,3.6] and asked to print z, the out was [1.2, 2.2999999999996,3.599999999996]. I am wondering what is the property of 1.2, i changed the position, from the first to the middle to the last etc. but the output is only 1.2, I don't know if 1.2 has any property.

More Prasanth G. Narasimha-Shenoi's questions See All
Similar questions and discussions