TypeError: expected IEnumerable, got float

I get the following warning ‘TypeError: expected IEnumerable, got float’ in line 17 of my code. What’s the problem?

python ver 8

The “math.fsum” function expects a list:

https://docs.python.org/2/library/math.html#math.fsum

Try wrapping the single values in a list.