list(map(float, line)) code example
Example: python split string into floats
floats = map(float, s.split())
#above will return map, for python3 to return list do
#floats = list(map(float, s.split()))
floats = map(float, s.split())
#above will return map, for python3 to return list do
#floats = list(map(float, s.split()))