List max(list) Function:

In Python Built-In List max(list) function is used to return the elements from the given list with maximum value.

Syntax:
There is 1 Parameter used in List max(list) Function: list from which max value to be returned.
Example:
#max() function

list1= ['TOM', 'JOHN']
list2 = [999, 555, 222, 777]
print ("Max Value: ", max(list1))
print ("Max Value: ", max(list2))

Comments are closed.