human
Python Convert String Literal to Float
assistant
Here is some code to split string `s` into float values and write sum to `total`

total = sum(float(item) for item in s.split(','))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.