Open In App

Python Tuple - min() Method

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

While working with tuples many times we need to find the minimum element in the tuple, and for this, we can also use min(). In this article, we will learn about the min() method used for tuples in Python.

Syntax of Tuple min() Method

Syntax: min(object)

Parameters:

  • object: Any iterable like Tuple, List, etc.

Return type: minimum element from the tuple.

Example

Tuple =( 4, 2, 5, 6, 7, 5)

Input: min(Tuple)

Output: 2

Explanation: The min() method returns the smallest element of the given tuple.

Using tuple min() Method

Here we are finding the minimum of a particular tuple.

Python3
# Creating tuples
Tuple = ( -1, 3, 4, -2, 5, 6 )
 
res = min(Tuple)
print('Minimum of Tuple is', res)

Output:

Minimum of Tuple is -2

Using tuple min() Method for string elements

Here we are finding the minimum element out of the tuple that constitutes of string elements based on length.

Python3
# Creating tuples
Tuple = ( "Geeks", "For", "Geeks", "GeeksForGeeks")

res = min(Tuple)
print('Minimum of Tuple is', res)

Output:

Minimum of Tuple is For

Using min for equal-length elements

Here we are finding the minimum element among the tuple of equal length elements. Where it gives the lexicographically smallest string.

Python3
# alphabets tuple
alphabets = ('GFG', 'gfg', 'gFg', 'GfG', 'Gfg')

res = min(alphabets)
print('Minimum of Tuple is', res)

Output:

Minimum of Tuple is GFG

Article Tags :
Practice Tags :

Similar Reads

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy