line = '1 1 C C 1.9873 2.347 3.88776'
print(map(float_or_str, line.split()))
Python: How can I read in the characters from a line in a file and convert them to floats and strs, depending on if they are numbers or letters?