Problems with converting a String to a float

Yes! It works when I print: "print(list); " but when I try to convert it to a float the error appears.