Syntax error Built-in Tuple Functions in Python

Built-in Tuple Functions in Python



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.
Updated on: 2020-01-28T12:48:46+05:30

10K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements