What is min() Function in Python?

Python min() function is used to find the minimum value. It is the opposite function of max().

You can use this function on any iterable like a string, list, tuple, etc. which makes it very useful.

Python min() Function

Python min() function returns the smallest of the values or the smallest item in an iterable passed as its parameter.

Example: Find Python min integer from the list

Python




numbers = [23,25,65,21,98]
print(min(numbers))


Output

21

Similar Reads

Python min() Function Syntax

...

What is min() Function in Python?

min(a, b, c, …, key=func)...

How to use min() function in Python?

Python min() function is used to find the minimum value. It is the opposite function of max()....

More Python min() Examples

Using min() function in Python is very easy. You just need to pass the list as a parameter in the min function and it will return the minimum number....