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


Selectel

Python max() built-in function

Python max() built-in function

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

Examples

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