Why sum,min,max,sorted operate on keys in python dictionary?
They are always only useful if operated on values.
An example case is dictionary with frequencies, like element: frequency.
Yeah at times dictionary are meant to have different types of value each, but in those situations operation on keys are not useful either if it can’t be on values.
I am asking about a feature request to implement these dictionary functions on values instead.
Only then it will be analogous to list as well, where we operate not on indexes but on values.