title: Having a string as a dictionary key
body: <p>I have 20K objects and a set of features provided in a list. I need to extract those features from each object and save them into a dictionary. Each object has almost 100 features.</p>
  
  <p>For example:</p>
  
  <pre><code># object1
  Object1.Age = '20'
  Object1.Gender = 'Female'
  Object1.DOB = '03/05/1997'
  Object1.Weight = '130lb'
  Object1.Height = '5.5'
  
  #object2
  Object1.Age = '22'
  Object1.Gender = 'Male'
  Object1.DOB = '03/05/1995'
  Object1.Weight = '145lb'
  Object1.Height = '5.8'
  
  #object3
  ....
  </code></pre>
  
  <p>And the list of features that I need to extract from each object:</p>
  
  <pre><code>features = ['Gender', 
              'DOB', 
              'Height']
  </code></pre>
  
  <p>I'm trying to prepare a dictionary for each object with the specified features such that:</p>
  
  <pre><code>dict1 = {features[0]:Object1.features[0], features[1]:Object1.features[1], features[2]:Object1.features[2]}
  
  dict2 = {features[0]:Object2.features[0], features[1]:Object2.features[1], features[2]:Object2.features[2]}
  
  dict3 = ...
  </code></pre>
  
  <p>Since the list of features may be change in future, I need the code to be flexible. I'm sure this is not the way that I can prepare the dictionary for each object but I wrote this to show the problem.</p>
  
  <p>How can I write the dictionaries?</p>