Python os and filesystem

how to run strip() and split() code on local computer
when am tried to convert to float it still remains as whitespace only
i had used this function to convert lists of floats

def parse_values(data_line):
values = []
for item in data_line.strip().split(’,’):
if item == ’ ':
values.append(0.0)
else:
try:
values.append(float(item))
except:
values.append(item)
return values

input: file3_line[1]
output: ‘45230,48,0.07,4300\n’
input: parse_values(file3_line[1])
output: [45230.0, 48.0, 0.07, 4300.0]

input: file3_line[2]
output: ‘883000,16,0.14,\n’
input: parse_values(file3_line[2])
output: [883000.0, 16.0, 0.14, ’ ']

but when i tried it on cloud jupyter notebook thruogh blinder it gives proper results

input: file3_line[3]
output: ‘100000,12,0.1,\n’’
input: parse_values(file3_line[3])
output:[100000.0, 12.0, 0.1, 0.0]

It seems correct to me, can you share the result where you are getting the wrong output?