title: How to create a dictionary from a file in python
body: <p>I have a file like this :</p>
  
  <pre><code>group #1
  a b c d
  e f g h
  
  group #2
  1 2 3 4
  5 6 7 8
  </code></pre>
  
  <p>How can I make this into a dictionary like this:</p>
  
  <pre><code>{'group #1' : [[a, b, c, d], [e, f, g, h]], 
   'group #2' :[[1, 2, 3, 4], [5, 6, 7, 8]]}
  </code></pre>