Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 849 Bytes

max.md

File metadata and controls

30 lines (25 loc) · 849 Bytes
title description
Python max() built-in function - Python Cheatsheet
Return the largest item in an iterable or the largest of two or more arguments.
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