How to pass item from list that is being sorted to lambda that is used as the key function used for the sorting?
I have a function that evaluates some parameters of the first argument it receives (here item
):
Deconstructing a tuple when using sorted with lambda function on key
I work with frequencies (%) and entropy (bits). Those two realities are very similar and it’s very easy to mix them up.