I am very new to Python and programming. I have a file with measurment values that looks like this:
85.2147....85.2150..85.2152..85.2166...85.2180.85.2190.
At the end what I want to have is:
85.2147
85.2150
85.2152
85.2166
85.2180
85.2190
What I managed using
k = (j.replace('....', '\r'))
l = (k.replace('...', '\r'))
m = (l.replace('..', '\r'))
is this:
85.2147
85.2150
85.2152
85.2166
85.2180.85.2190.
Now, the question is, how can I conditionally replace single dots, A) if no numbers come after it; and B) if the number after the point is the same as the 6th number (or 7th character) before the point.