I have this list:
['Ben\n', '5 0 0 5 -5 \n', 'Moose\n', '5 5 0 3 0 0 \n', ...]
that carries on like that for a long time. I need to make this list into a list of tuples like this:
[('Ben', '5 0 0 5 -5'), ('Moose', '5 5 0 3 0 0'), ...] and so on.
I feel like this should be easy.
I've already opened the text file and split it into a list by line this way:
e = open("bookratings.txt", "r")
elines = e.readlines()
But I don't know where to go from here?