fork download
  1. dic = {'bsx_8612': [23, 567, 632], 'asd_6375': [654, 12, 962], 'asd_2498': [56, 12, 574], 'bsx_9344': [96, 1022, 324]}
  2.  
  3. print max(dic.items(), key = lambda (k, v): sum(v))[0]
  4.  
  5. # Python 3
  6. print max(dic.items(), key = lambda t: sum(t[1]))[0]
  7.  
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
('asd_6375', [654, 12, 962])
('asd_6375', [654, 12, 962])