Name

max()

Examples
a = max(5, 9)  # Sets 'a' to 9
b = max(-4, -12)  # Sets 'b' to -4
c = max(12.3, 230.24)  # Sets 'c' to 230.24
values = 9, -4, 362, 21  # Create an array of ints
d = max(values)  # Sets 'd' to 362
Description
Syntax
 
max(a, b)
max(a, b, c)
max(list)
Parameters
a
b
c
list
Related min()
Updated on Wed Jan 18 17:32:20 2017.
Creative Commons License