Python list method min() returns the elements from the list with minimum value.
Following is the syntax for min() method -
min(list)
This method returns the elements from the list with a minimum value.
The following example shows the usage of min() method.
#!/usr/bin/python list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200] print "min value element : ", min(list1) print "min value element : ", min(list2)
When we run the above program, it produces the following result -
min value element : 123 min value element : 200
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.