Перейти к содержанию

Python min() built-in function

Python min() built-in function

From the Python 3 documentation Return the smallest item in an iterable or the smallest of two or more arguments.

Examples

>>> min([1, 2, 10, 40, 5])
# 1
>>> min((1, 2, 10, 40, 5))
# 1