min()

Returns the lowest value from values given or an iterable.

Syntax

min(iterable)

Example 1

Use min() to return the lowest value from the shoe_sizes list:

Code
Output
Loading...

Example 2

Use min() to return the lowest value from the values "Tom", "Jerry", "Spike", "Tyke":

Code
Output
Loading...

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Python on Codecademy

Contributors