Python includes the following tuple functions −
Sr.No | Function with Description |
---|---|
1 | cmp(tuple1, tuple2) Compares elements of both tuples. |
2 | len(tuple) Gives the total length of the tuple. |
3 | max(tuple) Returns item from the tuple with max value. |
4 | min(tuple) Returns item from the tuple with min value. |
5 | tuple(seq) Converts a list into tuple. |