title: Making a nested dictionary with lists and arrays
body: <p>I have two lists and an array:</p>
  
  <pre><code>owners = [ 'Bill', 'Ann', 'Sarah']
  
  dog = ['shepherd', 'collie', 'poodle', 'terrier']
  
  totals = [[5, 15, 3, 20],[3,2,16,16],[20,35,1,2]]
  </code></pre>
  
  <p>I want to make a nested dictionary out of these.</p>
  
  <pre><code>  dict1 = {'Bill': {'shepherd': 5, 'collie': 15, 'poodle': 3, 'terrier': 20},
             'Ann': {'shepherd': 3, 'collie': 2, 'poodle': 16, 'terrier': 16},
             'Sarah': {'shepherd': 20, 'collie': 35, 'poodle': 1, 'terrier': 2}
            }
  </code></pre>
  
  <p>My closest attempt:</p>
  
  <pre><code> totals_list = totals.tolist()
  
   dict1 = dict(zip(owners, totals_list))
  </code></pre>
  
  <p>I cannot find a way to create the nested dictionary I am looking for. Any suggestions?</p>