Python MAX
Max function
The max() function return the maximum number in an iterable or the maximum number of two or more arguments.
Examples
Example 1
>>> max(5,7) 7 >>> max('5', '3', '8') '8' >>> x = 3 >>> y = 10 >>> z = 6 >>> max(x,y,z) 10 >>>
Example 2
>>> a = [1, 78, 4, 99, 8] >>> max(a) 99 >>> x = [1, 2, 3] >>> y = [4, 5, 6] >>> z = [7, 8, 9, 10] >>> max(x,y,z) [7, 8, 9, 10] >>>