how to do certain data processing in python?
<p>I have two lists of strings, which have the following format:</p>

<pre><code>[x1,x2,x3,x4,...] [y1,y2,y3,y4...]
</code></pre>

<p>Call it lst1.</p>

<p>lst2 would be:</p>

<pre><code>[x1',x2',x3',x4',...] [y1,y2,y3,y4,...]
</code></pre>

<p>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.</p>

<p>Then, I want to merge lst1 and lst2, in the following way:</p>

<p>create a new list of strings where:</p>

<pre><code>[x1-x1',x2-x2',....] [y1,y2,y3,y4...]
</code></pre>

<p>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).</p>

<p>Thanks.</p>
