If I define the following dictionary, can I use functions such as max(), min(), numpy.mean(), numpy.median() to calculate statistics on the values of the keys ‘avalue’ for of all of the keys of adict (i.e. for key1 through key3) without first appending the values to a seperate iterable object?
adict = {'key1':{'achar':'a','avalue':1},'key2':{'achar':'b','avalue':2},'key3':{'achar':c,'avalue':3}}
I’ve written below step by step , Hope you may got your answer