min

min

> Functions

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

Parameters
Return
Python

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

Examples

min(2, 5) // 2 min(-2, -5) // -5

See as well