Question: 
Write a function to find the maximum value in record list as tuple attribute in the given tuple list.


Model's Code:
def maximum_value(records):
    return [(key, max(values)) for key, values in records]



Sample Correct Code:
def maximum_value(test_list):
  res = [(key, max(lst)) for key, lst in test_list]
  return (res) 


Asserts:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('key1', [4, 5, 6]), ('key2', [2, 5, 3]), ('key3', [10, 4])]) == [('key1', 6), ('key2', 5), ('key3', 10)]
assert maximum_value([('key1', [5, 6, 7]), ('key2', [3, 6, 4]), ('key3', [11, 5])]) == [('key1', 7), ('key2', 6), ('key3', 11)]


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 613 of 974: 456/613 (74.38825448613376%): success