Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
min
min
Return the smallest item in an iterable or the smallest of two or more arguments.
Python 3.13
min
(
iterable
,
*
[
,
key
,
default
]
)
iterable
An iterable object.
key
A function to specify a sorting key.
default
Default value if the iterable is empty.
Examples
Python 3.13
>>
>
min
(
1
,
2
,
3
)
1