Python Min



  • Python Basic Tutorial
  • Python Advanced Tutorial

Python Min Max

  • Python Useful Resources
  • Selected Reading

Python min Python min function is used to find the minimum of a given iterable, or two or more arguments. We can provide either an iterable; or two or more items as arguments to min function, but not mix iterable and the other items. Python min function This function is used to – compute the minimum of the values passed in its argument. Lexicographically smallest value if strings are passed as arguments. Python number method min returns the smallest of its arguments: the value closest to negative infinity.

Python Mine Clearing Images


Description

Python list method min() returns the elements from the list with minimum value.

Syntax

Following is the syntax for min() method −

Parameters

  • list − This is a list from which min valued element to be returned.

Return Value

Min

Python Minimum Of A List

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

Example

Min

The following example shows the usage of min() method.

Find Minimum In A List Python

When we run above program, it produces following result −

Python min heap
python_lists.htm