how to unlist a python list?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python">Making a flat list out of list of lists in Python</a>  </p>
</blockquote>



<p>I am trying to find an easy way to to break multi dimensional python list into a single list having all the elements of the sublists for example:</p>

<pre><code>A = [[1,2,3,4,5]]
</code></pre>

<p>Is there a command to make it </p>

<pre><code>A=[1,2,3,4,5]
</code></pre>

<p>or</p>

<pre><code>A= [[1,2],[3,4]]
</code></pre>

<p>is there a command to make it </p>

<pre><code>A= [1,2,3,4]
</code></pre>
