title: How to get the max length of the key or value in the list of dictionary in Python
body: <p>I am trying to find the maximum length of the last key-value pair (in each dict) in the list of ordered dictionary.</p>
  
  <p>Example:</p>
  
  <pre><code># below is the list of ordered dict
  my_list = [{'Table': 'Config', 'Column': 'config_id', 'DataType': 'int'},
         {'Table': 'Config', 'Column': 'config_name', 'DataType': 'varchar'},
         {'Table': 'Config', 'Column': 'config_value', 'DataType': 'numeric'}]
   # Expected out put
   Out put: 8 # as the key (in this case "DataType") has max chars  and if any value for the same key has max char then it will return that value.
  </code></pre>
  
  <p>Any Suggestions!</p>