I currently am just able to open a file, and now I don't know how to begin parsing the data.
The recommended way of sorting the data is to use the following three lists (which I set as):
Expand|Select|Wrap|Line Numbers
- authorsList = []
- journalsList = []
- papersList = []
What I learned to do in Python: basic I/O, loops and conditions, defining functions and little exception handling. I've been going through google but a lot of answers to the same question I have, have been using the csv module and regular expressions, which I tried to learn myself but couldn't understand the code that was suggested. Is there a way to do it without the csv and re module?
I was thinking of doing something like this:
Expand|Select|Wrap|Line Numbers
- for line in openfile:
- a, b, c, d = line.split("\t")
- authorsList.append(a)
- papersList.append(b, c)
- journalsList.append(d)
Any suggestions or tips?
Thanks for your time and consideration.