I'm relatively new to python (experience in c#), and I have a list in a text file that I dumped into a list using;
with open(fname) as f:
content = f.readlines()
content = [x.strip() for x in content]
The thing is, every line is in the form XXXXX, XXXXX (with varying lengths of XXXXX), and I want to convert f into a 2-dimensional array with things in the line before the comma in the first dimension and everything after in the second.
What's the best practice for doing something like that?