title: Dictionary key name from variable
body: <p>I am trying to create a nested dictionary, whereby the key to each nested dictionary is named from the value from a variable.  My end result should look something like this:</p>
  
  <pre><code>data_dict = {
      'jane': {'name': 'jane', 'email': 'jane@example.com'}, 
      'jim': {'name': 'jim', 'email': 'jim@example.com'}
  }
  </code></pre>
  
  <p>Here is what I am trying:</p>
  
  <pre><code>data_dict = {}
  s = "jane"
  data_dict[s][name] = 'jane'
  </code></pre>
  
  <p>To my surprise, this does not work.  Is this possible?   </p>