How do you divide list into equal parts?
<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>I have a <code>list</code> such as:</p>

<pre><code>L = [1,2,3,4,5,6,7,8]
</code></pre>

<p>Let's say I want to divide this <code>L</code> into 3 parts into something like:</p>

<pre><code>result = [[1,2,3],[4,5,6],[7,8]]
</code></pre>

<p>How can I do this without using higher programming methods (ONLY USING SIMPLE PYTHON METHOD)?</p>
