Python program that generate a list from a given list according to a mapping
<p>E.g.</p>

<p>org_list : </p>

<pre><code>aa b2 c d
</code></pre>

<p>mapping :</p>

<pre><code>aa 1
b2 2
d 3
c 4
</code></pre>

<p>gen_list:</p>

<pre><code>1 2 4 3
</code></pre>

<p>What is the Python way to implement this? Suppose org_list and the mapping are in files <code>org_list.txt</code> and <code>mapping.txt</code>, while the gen_list will be written into <code>gen_list.txt</code></p>

<p>Btw, which language do you expect is very simple to implement this?</p>
