Att Tuple Max
# Python2.x Python Tuple max() Method
[Python Tuples](#)
* * *
## Description
The Python tuple max() function returns the maximum value in a tuple.
## Syntax
The syntax for the max() method is:
max(tuple)
## Parameters
* tuple -- The specified tuple.
## Return Value
Returns the maximum value in the tuple.
## Example
The following example demonstrates the usage of the max() function:
#!/usr/bin/python tuple1, tuple2 = (123, 'xyz', 'zara', 'abc'), (456, 700, 200)print "Max value element : ", max(tuple1);print "Max value element : ", max(tuple2);
The output of the above example is:
Max value element : zara Max value element : 700
[Python Tuples](#)
YouTip