Copyright © tutorialspoint.com
This function returns the elements from the list with minimum value.
min(list) |
Here is the detail of parameters:
list: a list from which min valued element to be returned.
It returns the elements from the list with minimum value.
#!/usr/bin/python list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200] print "min value element : ", min(list1); print "min value element : ", min(list2); |
This will produce following result:
min value element : 123 min value element : 200 |
Copyright © tutorialspoint.com