1.

What is the result of math.fsum([.1 for i in range(20)])?(a) 2.0(b) 20(c) 2(d) 2.0000000000000004

Answer» Right answer is (a) 2.0

Easy explanation - The function fsum returns an accurate floating point sum of the elements of its argument.


Discussion

No Comment Found