On Mon, 30 Nov 2026 19:44:50 +0100, Bonita Montero wrote:
> Am 30.11.2026 um 19:40 schrieb Lawrence D’Oliveiro:
>> >> Python 3.14.10 (main, Oct 26 2026, 15:12:11) [GCC 16.2.0] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> max(2, 3, 5) >> 5 >> >>> args = [2, 3, 5] >> >>> max(*args) >> 5
> > It's for sure more flexible since it can handle more variations of > compatible types and it's for sure much fasger.
You betcha: >>> max("red", "green", "blue") 'red' >>> max(["red"], ["red", "green"], ["blue"]) ['red', 'green'] Anything that has an ordering defined will work.