Update index.md (#34120)

This commit is contained in:
Kyle Cheng
2018-12-05 14:14:46 -08:00
committed by Randell Dawson
parent 295cbe7e96
commit 2791586935

View File

@ -1,7 +1,7 @@
--- ---
title: Python Min Function title: Python Min Function
--- ---
`min()` is a built-in function in Python 3\. It returns the smallest item in an iterable or the smallest of two or more arguments. `min()` is a built-in function in Python 3\. It returns the smallest item in an iterable, or the smallest of two or more arguments.
## Arguments ## Arguments
@ -21,8 +21,7 @@ Invalid Arguments:
## Return Value ## Return Value
The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned. If the iterable is empty and default is not provided, a ValueError is raised.
is returned. If the iterable is empty and default is not provided, a ValueError is raised.
## Code Sample ## Code Sample
@ -45,4 +44,4 @@ is returned. If the iterable is empty and default is not provided, a ValueError
![:rocket:](//forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=2 ":rocket:") <a href='https://repl.it/CVir/4' target='_blank' rel='nofollow'>Run Code</a> ![:rocket:](//forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=2 ":rocket:") <a href='https://repl.it/CVir/4' target='_blank' rel='nofollow'>Run Code</a>
<a href='https://docs.python.org/3/library/functions.html#min' target='_blank' rel='nofollow'>Official Docs</a> <a href='https://docs.python.org/3/library/functions.html#min' target='_blank' rel='nofollow'>Official Docs</a>