I've tried Googling this, but could not find an answer with regard to a situation similar to this one. I have a dictionary in the following format:
my_dict={'key1': ['some_data', 'some_more_data',6.0], 'key2': ['junk', 'some_more_junk',7.0], 'key3': ['something_good', 'good',1.0]}
How would I go about creating a subdictionary containing only the key-value pair with the smallest number at the end of the list? In other words, I'd want my output to be:
sub_dict={'key3': ['something_good','good',1.0]}
Note the minimum value will always be at the end of the list, the other elements in the list are pertinent to the key.