Python min() FunctionLast Updated : 27 Dec 2025 Python min() function is used to get the smallest element from the collection. This function takes two arguments, first is a collection of elements and second is key and returns the smallest element from the collection. Python min() Function SyntaxIt has the following syntax: Parameters
ReturnIt returns the smallest element from the collection. Different Examples for Python Min() FunctionLet's see some examples of min() function to understand it's functionality. Python min() Function Example 1A simple example to get the smallest element from the collection. See the below example. Output: 325 1000.25 Python min() Function Example 2Let us take an example to demonstrate the Python min() Function. Output: A [10, 12] Python min() Function Example 3Let us take another example to demonstrate the Python min() Function. Output: Java [13, 15] Next TopicPython Functions |
We request you to subscribe our newsletter for upcoming updates.