How to use tuple min() Method for string elements In Python
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" , "w3wiki" ) res = min ( Tuple ) print ( 'Minimum of Tuple is' , res) |
Output:
Minimum of Tuple is For