title: Python printing values of values in a dictionary
body: <p>In Python, I know you print the values of a key in a dictionary by doing <code>variable.values()</code>. But what if I wanted to print a value of a particular value?</p>
  
  <p>For an example:</p>
  
  <pre><code>pets = {'Dog': ['Poodle', 'Boxer', 'Terrier'], 'Cat': ['Sphynx', 'Ragdoll', 'Birman']}
  </code></pre>
  
  <p>I want to specifically choose a particular breed of animal. For instance, I just want to print <code>Boxer</code>.</p>
  
  <p>You could do something like:</p>
  
  <pre><code>animal = list(pets.values())[0]
  breed = list(animal.values())[1]
  print(breed)
  </code></pre>
  
  <p>This will give you <code>Boxer</code>. However, I was curious if I can do this in a single line of code like printing a value of a value. </p>
  
  <p>I've tried:</p>
  
  <pre><code>breed = list(list(pets.values()))[0][1]
  </code></pre>
  
  <p>but it tells me that the string index is out of range.</p>