title: How to create a dictionary from a file with multiple lines
body: <p>I'm trying to create a dictionary from multiple lines in a file, for i.e.</p>
  
  <pre><code>grocery store
  apples
  banana
  bread
  
  shopping mall
  movies
  clothing stores
  shoe stores
  </code></pre>
  
  <p>What I'm trying to do is make the first row of each section (i.e. grocery store and shopping mall) the keys and everything underneath (apple, banana, bread &amp; movies, clothing stores, shoe stores respectively) the values. I've been fiddling around with the readline approach + while loop, but I haven't been able to figure it out. If anyone knows, please help. Thanks.</p>