Apologies for being off topic, but after reading the implementation code, I was amazed at how short it is!
I have never been a huge fan of Python (Lisp person) but I really appreciate how concise Python can be, and the dynamic nature of Python allows the nice query syntax.
Agreed on conciseness of the implementation. It is short and clear despite having a Max and Min that share all except one character in 30 lines of code.
> Python can be seen as a dialect of Lisp
- Peter Norvig
https://www.norvig.com/python-lisp.html