Overview:
- The min() function returns the smallest of the elements present in a Python list.
Example:
# Example Python program that constructs # Construct a Python list object # Find the smallest of the elements print("Unordered elements from a Python list:") print("Smallest of the elements:") |
Output:
Unordered elements from a Python list: [10, 20, 60, 70, 5, 40, 30] Smallest of the elements: 5 |