Arguments in functions python?

You want to use functools.partial(): min_arg2 = functools. Partial(min, key=itemgetter(1)) See docs.python.org/library/functools.html for the docs. Example: >>> import functools >>> from operator import itemgetter >>> min_arg2 = functools.

Partial(min, key=itemgetter(1)) >>> min_arg2(vals) ('b', 0).

This is what I looking for. Thank you. – Diego Oct 28 at 4:35.

Using functools (as in Duncan's answer) is a better approach, however you can use a lambda expression, you just didn't get the syntax correct: min_arg2 = lambda p,q: min(p,q, key=itemgetter(1)).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions