title: Python - adding key value parts to empty dict
body: <p>I've created a dictionary instance without any key: value pairs, standard </p>
  
  <pre><code>dict = {}
  </code></pre>
  
  <p>I'm then returning back some information from an API to be added to this dictionary dependent on some variables <strong>name</strong>.</p>
  
  <pre><code>some_variables_name1 = str(some_variable1)
  
  dict[some_variables_name1] += [{ 'key1': value1 }]
  
  some_variables_name2 = str(some_variable2)
  
  dict[some_variables_name2] += [{ 'key2': value2 }]
  </code></pre>
  
  <p>However, I seem to be getting an error similar to this *Assuming that str(some_variable1) is equal to <code>'foo'</code>:</p>
  
  <pre><code>KeyError: 'foo'
  </code></pre>
  
  <p>Any pro tips?</p>