I am trying to find the maximum length of the last key-value pair in the list of ordered dictionary.
Example:
# 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 retu that value.
Any Suggestions!
