adplus-dvertising
frame-decoration

Question

What is the result of sum([.1 for i in range(20)])?

a.

2.0

b.

20

c.

2

d.

2.0000000000000004

Posted under Python

Answer: (d).2.0000000000000004

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the result of sum([.1 for i in range(20)])?