How to pipe parameter string to excutable in python?
<p>Say I need to do the following in python:</p>

<pre><code>import os
os.system("a.out 1 \n 3 \n 2 \n 5 \n 2...")
</code></pre>

<p>Here I have separate string to store the parameters:</p>

<pre><code>par="1 \n 3 \n 2 \n 5 \n 2..."
</code></pre>

<p>Not sure how to pipe it to "a.out" in python. Thanks!</p>
