List min() Method
The method min() returns the elements from the list
with minimum value.
Syntax
min(list)
|
Parameters
list - This is a list from
which min valued element is to be returned.
Return Value
This method returns the elements from the list with
minimum value.
Example
#!/usr/bin/python3
list1,
list2 = ['C++','Java', 'Python'], [156, 900, 400]
print
("min value element : ", min(list1))
print
("min value element : ", min(list2))
|
When we run above program, it produces following
result
min
value element : C++
min
value element : 156
|
<<< max( ) method Go to Index list( ) method >>>