$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #193

What is the output?

print(sum([0.1] * 10) == 1.0)
  1. False
  2. True
  3. None
  4. Error
Ten inexact additions accumulate drift; math.isclose is the right comparison.
Play Problem Solving ▸