You have zero in your input at second column, not first one. Input has float but you have output with integer string value, is output value integral
You can split task in two, just read in the float numbers with with open ...as. And process with strip and split methods, print out the desired columns as test.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
So you can use this to give start (I leave out file i/o not to give all solution):
data = """0 0.00E+00 0.00E+00 -2.00E-02 9.48E+02
1 0.00E+00 0.00E+00 -1.80E-02 9.48E+02""".splitlines()
for d in data:
line = d.strip().split()
print line[0]+','+line[-1]
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852