Howto iterate over more than one element in python's for loop
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python">How do you split a list into evenly sized chunks in Python?</a>  </p>
</blockquote>



<p>The idea is quite simple, I want to do something like this:</p>

<pre><code>for elem1, elem2, elem3 in list:
    &lt;some code&gt;
</code></pre>

<p>For this to work we need that list would be a list of 3-iterables, something like this:</p>

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

<p>But, what can I do if this list is just a regular list?</p>

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

<p>Is there any fast and simple way of transform this regular list into the list of 3-iterables so the loop would work? Or n-iterables, I use 3 here just as an example.</p>

<p>Thanks.</p>
