YouTip LogoYouTip

Att Tuple Min

# Python Tuple min() Method [![Image 3: Python Tuples](#)Python Tuples](#) * * * ## Description The Python tuple min() function returns the smallest element in a tuple. ## Syntax The min() method syntax: min(tuple) ## Parameters * tuple -- The specified tuple. ## Return Value Returns the smallest element in the tuple. ## Example The following example demonstrates the usage of the min() function: #!/usr/bin/python tuple1, tuple2 = (123, 'xyz', 'zara', 'abc'), (456, 700, 200)print "min value element : ", min(tuple1);print "min value element : ", min(tuple2); The output of the above example is: min value element : 123 min value element : 200 [![Image 4: Python Tuples](#)Python Tuples](#)
← Att Dictionary KeysAtt Tuple Max β†’