Att List Max
# Python2.x Python List max() Method
[ Python Lists](#)
* * *
## Description
The max() method returns the largest item in a list.
## Syntax
The syntax for the max() method is:
max(list)
## Parameters
* list -- The list whose largest item is to be returned.
## Return Value
Returns the largest item in the list.
## Example
The following example demonstrates the use of the max() function:
#!/usr/bin/python list1, list2 = ['123', 'xyz', 'zara', 'abc'], [456, 700, 200]print "Max value element : ", max(list1);print "Max value element : ", max(list2);
The output of the above example is:
Max value element : zara Max value element : 700
[ Python Lists](#)
YouTip