title: Convert a flat list to list of lists in python
body: <p>One may want to do the contrary of flattening a list of lists, <a href="https://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python">like here</a>: I was wondering how you can convert a flat list into a list of lists.</p>
  
  <p>In numpy you could do something like:</p>
  
  <pre><code>&gt;&gt;&gt; a=numpy.arange(9)
  &gt;&gt;&gt; a.reshape(3,3)
  &gt;&gt;&gt; a
  array([[0, 1, 2],
     [3, 4, 5],
     [6, 7, 8]])
  </code></pre>
  
  <p>I was wondering how you do the opposite, and my usual solution is something like:</p>
  
  <pre><code>&gt;&gt;&gt; Mylist
  ['a', 'b', 'c', 'd', 'e', 'f']
  &gt;&gt;&gt; newList = []
  for i in range(0,len(Mylist),2):
  ...     newList.append(Mylist[i], Mylist[i+1])
  &gt;&gt;&gt; newList 
  [['a', 'b'], ['c', 'd'], ['e', 'f']]
  </code></pre>
  
  <p>is there a more "pythonic" way to do it? </p>