title: Python: list of dictionaries, how to get values of a specific key for multiple items of the list?
body: <p>I have a list of dictionaries like:</p>
  
  <pre><code>dict_list = [{'key1': 'dict1_value1', 'key2': 'dict1_value2', 'key3': 'dict1_value3'},
  {'key1': 'dict2_value1', 'key2': 'dict2_value2', 'key3': 'dict2_value3'},
  {'key1': 'dict3_value1', 'key2': 'dict3_value2', 'key3': 'dict3_value3'},
  {'key1': 'dict4_value1', 'key2': 'dict4_value2', 'key3': 'dict4_value3'},
  {'key1': 'dict5_value1', 'key2': 'dict5_value2', 'key3': 'dict5_value3'}]
  </code></pre>
  
  <p>getting the value for 'key3' for the second list item is like:</p>
  
  <pre><code>dict_list[1]['key3']
  dict2_value3
  </code></pre>
  
  <p>and also the code below returns items 2:4 from the list:</p>
  
  <pre><code>dict_list[1:3]
  </code></pre>
  
  <p>What if I want to get values for 'key3' for multiple items from the list. like</p>
  
  <pre><code>dict_list[1:3]['key3']
  </code></pre>
  
  <p>something similar to what we do in MATLAB.</p>