I have a couple of functions which calculates different statistical data based on input dictionaries, e.g. max, min, sum, average, median.
I would like to combine all these functions into one instead of having them in different methods. so the caller can do something like below:
(minValue, averageValue, maxValue) = myFunction(min, avg, max, data, key, ...)
or
(minValue, maxValue) = myFunction(min, max)
I am new to python, I am trying to understand how this can be achieved using sets! Please do not suggest other ways of solving this problem, as I am trying to learn python and python syntax as well. A small example would be great.