title: Populate dictionaries from text file
body: <p>I have a text file with the details of a set of restaurants given one after the other. The details are name, rating, price and type of cuisines of a particular restaurant. The contents of text file is as given below.</p>
  
  <pre><code>George Porgie
  87%
  $$$
  Canadian, Pub Food
  
  Queen St. Cafe
  82%
  $
  Malaysian, Thai
  
  Dumpling R Us
  71%
  $
  Chinese
  
  Mexican Grill
  85%
  $$
  Mexican
  
  Deep Fried Everything
  52%
  $
  Pub Food
  </code></pre>
  
  <p>I want to create a set of dictionaries as given below:</p>
  
  <pre><code>Restaurant name to rating:
  # dict of {str : int}
  name_to_rating = {'George Porgie' : 87,
  'Queen St. Cafe' : 82,
  'Dumpling R Us' : 71,
  'Mexican Grill' : 85,
  'Deep Fried Everything' : 52}
  
  Price to list of restaurant names:
  # dict of {str : list of str }
  price_to_names = {'$'   :  ['Queen St. Cafe', 'Dumpling R Us', 'Deep Fried Everything'],
  '$$'  :  ['Mexican Grill'],
  '$$$' :  ['George Porgie'], 
  '$$$$' : [ ]}
  
  Cuisine to list of restaurant name:
  #dic of {str : list of str }
  cuisine_to_names = {'Canadian' : ['George Porgie'],
  'Pub Food' : ['George Porgie', 'Deep Fried Everything'],
  'Malaysian' : ['Queen St. Cafe'],
  'Thai' : ['Queen St. Cafe'],
  'Chinese' : ['Dumpling R Us'],
  'Mexican' : ['Mexican Grill']}
  </code></pre>
  
  <p>What is the best way in Python to populate the above dictionaries ?</p>