Python max() 組み込み関数
From the Python 3 documentation
イテラブル内の最大の項目、または 2 つ以上の引数の中で最大のものを返します。
Introduction
max() 関数は 2 通りの方法で使用できます。
Examples
イテラブル内の最大値を見つける:
numbers = [1, 2, 10, 40, 5]
print(max(numbers))
letters = ('a', 'b', 'z')
print(max(letters))
40
z
複数の引数の中から最大値を見つける:
print(max(10, 20, 5))
20