I am very new to Python. I know that this has already been asked, and I apologise, but the difference in this new situation is that spaces between strings are not equal. I
Why not to read a file line by line? Split a line into a list then rejoin a list with ','.