I have a text file that contains data in two columns, each of which I want to read into Python as a list.
For example :
2500.3410 -0.60960758
2505.5803 -1.3031826
2510.8197 -0.64067196
2516.0593 -1.0230898
2521.2991 -0.20078891
I want to create two lists, one containing the data from column 1 and the other column 2, but I don't know how to tell Python to do this.
E.g.
list1 = [2500.3410, 2505.5803, 2510.8197, 2516.0593, 2521.2991]
I have opened the file in the shell and can read in the data, as above, but I'm stuck when it comes to creating the lists.