خرید بک لینک

Vote count: 0

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!

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 19 فروردين 1395 ساعت: 21:10

صفحه بندی