Tutorials Point


  Python Basics
  Python Advanced
  Python Useful References
  Python Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Python List min() Function


previous next AddThis Social Bookmark Button


Description:

This function returns the elements from the list with minimum value.

Syntax:

min(list)

Parameters:

Here is the detail of parameters:

  • list: a list from which min valued element to be returned.

Return Value:

It returns the elements from the list with minimum value.

Example:

#!/usr/bin/python

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

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

This will produce following result:

min value element :  123
min value element :  200


previous next Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names