I have a dictionary with lists as values ; i need to find the key which has the fewer number of items in its list
Also I need to find what key has the item in the list with the lowest individual score.
I've really got no idea how to approach the first problem but my attempts to find the 2nd I feel like my coding attempts are not bringing back the results I would expect.
Thanks for any help or any pointers
results = {
'a': [21, 23, 24, 19],
'b': [16, 15, 12, 19],
'c': [23, 22, 23],
'd': [18, 20, 26, 24],
'e': [17, 22],
'f': [22, 24],
'g': [21, 21, 28, 25]
}
#Attempt1
print(min(results.items()))
#attempt2
print(results[min(results,key=results.get)])