title: Get deeply nested key value without for loop in Python
body: <p>I'm not experienced with Python and I'm trying to directly query a key value from within a nested dictionary.  I'm working with the following:</p>
  
  <pre><code>"Items": {
    "Ingredients": {
      "M": {
        "sugar": {
          "S": "three quarters of a cup"
  </code></pre>
  
  <p>I can get what I need by using a <code>for loop</code> but if I know the key is named <code>sugar</code> how can I <code>.get()</code> to it directly?  It seems like wasteful cycles to use the <code>for loop</code> when you already know what you want.</p>
  
  <p>EDIT: I'm querying a DynamoDB table and the response that I get is in dict form.  My search query is <code>results=client.query(**allmyargs)</code> so the name of my dict is results, if I'm not mistaken.</p>
  
  <p>When I try <code>results['Items']['Ingredients']['M']['sugar']</code> I get an error that <code>list indices must be integers, not str</code>.</p>
  
  <p>FINAL EDIT: I have much to learn.</p>