I had the need for a simple function to return both the maximum value of an expensive function and the argument for which this maximum was achieved. import operator def func(x): return (10 - x) * x ...
You can create a release to package software, along with release notes and links to binary files, for other people to use. Learn more about releases in our docs.