Latest web development tutorials

Python List min () method

Python list Python list


description

min () method returns the minimum list of elements.

grammar

min () method syntax:

min(list)

parameter

  • list - a list of the minimum value to be returned.

return value

Returns the minimum list of elements.

Examples

The following example shows the min () function to use:

#!/usr/bin/python

list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]

print "min value element : ", min(list1);
print "min value element : ", min(list2);

Examples of the above output results are as follows:

min value element :  123
min value element :  200

Python list Python list