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