I have two lists of strings, which have the following format:
[x1,x2,x3,x4,...] [y1,y2,y3,y4...]
Call it lst1.
lst2 would be:
[x1',x2',x3',x4',...] [y1,y2,y3,y4,...]
you can assume that each string in lst1 has matching y's in the corresponding element in lst2, and the same number of x's, but it would be great to throw an error if some x and x' is not of the same length.
Then, I want to merge lst1 and lst2, in the following way:
create a new list of strings where:
[x1-x1',x2-x2',....] [y1,y2,y3,y4...]
I am really curious to see what kind of solutions would come up with that... I am new to python and I want to see what kind of different ways there are to do things for a data processing of this type (which I do a lot).
Thanks.