I do not understand how to fix this
about float problem
The fly in the ointment here is,
Bug: It just overwrote the list, causing the next line to raise an exception. A number does not have an append method.
Fix: Use a different variable name to which to make the assignment.