title: Getting a specific value of a key in a dictionary?
body: <p>I have a dictionary like this:</p>
  
  <pre><code>d = {'k1':[0.2,0.65,0.23], 'k2':[0.32,1.2,3.3], 'k3':[1.8,0.6,0.4], ...}
  </code></pre>
  
  <p>So, I want to get a list of the key and the second value of each key in a list. I have tried this code:</p>
  
  <pre><code>names = list(d.keys())
  values = list(d.values())
  </code></pre>
  
  <p>The first line is correct and gives me the list of all keys, but the second line provides all the values, which is not what I needed. So I need only the second or the third value of each key. Any suggestions?</p>