Python MIN
Min function
The min() function return the minimum number in an iterable or the minimum number of two or more arguments.
Examples
Example 1
>>> min(2,3)
2
>>> min('7', '3', '8')
'3'
>>> x = 12
>>> y = 15
>>> z = 11
>>> min(x,y,z)
11
>>>
Example 2
>>> s = [5, 7, 2, 1, 11, 5] >>> min(s) 1 >>> a = [1, 2, 1, 5] >>> b = [4, 3, 2, 8, 1] >>> c = [8, 9] >>> min(a,b,c) [1, 2, 1, 5] >>>