title | description |
---|---|
Python max() built-in function - Python Cheatsheet |
Return the largest item in an iterable or the largest of two or more arguments. |
>>> max([1, 2, 10, 40, 5])
# 40
>>> max((1, 2, 10, 40, 5))
# 40
title | description |
---|---|
Python max() built-in function - Python Cheatsheet |
Return the largest item in an iterable or the largest of two or more arguments. |
>>> max([1, 2, 10, 40, 5])
# 40
>>> max((1, 2, 10, 40, 5))
# 40