max

max

> Functions

Returns the largest value between the two numbers a* and *b.

Parameters
Return
Python

In Python, max() is the language's native function: it accepts as many arguments as you want (max(a, b, c)) or a single iterable (max([1, 2, 3])), and compares any orderable type — numbers, strings, or objects of a class that defines __lt__.

Examples

max(2, 5) // 5 max(-2, -5) // -2

See as well