PyDocs

Nav

Python Runtime Services

min

builtins

function
  • min(iterable, /, *, key=None)
  • min(iterable, /, *, default, key=None)
  • min(arg1, arg2, /, *args, key=None)
min(iterable, *[, default=obj, key=func]) -> value
min(arg1, arg2, *args, *[, key=func]) -> value

With a single iterable argument, return its smallest item. The
default keyword-only argument specifies an object to return if
the provided iterable is empty.
With two or more positional arguments, return the smallest argument.
Changed in 3.4, 3.8
  • 3.4: Added the default keyword-only parameter.
  • 3.8: The key can be None.
0 Examples
No examples for builtins/min.
See Also
No see-alsos for builtins/min
0 Notes
No notes for min