I have thousands of lines with data in the form: 6580,f|S,17:42:29.3,-39:01:48,2.19,2.41,-0.22
I would like to take only the last number (in this case -0.22) so I can perform some calculations. My problem is: the lines aren't strings, and they have variable length (slicing from the beginning/end isn't an option). How can separate those commas and create a list of strings or floats?
Is there a way to separate that sequence in way that I can use, for example, "line[6]" to get that last value?