explain any three functions of tuple
Answers
Answered by
3
Built-in Tuple Functions.
Sr.No. Function & Description
1 len(tuple) Gives the total length of the tuple.
2 max(tuple) Returns item from the tuple with max value.
3 min(tuple) Returns item from the tuple with min value.
4 tuple(seq) Converts a list into tuple
Answered by
1
- The tuple() function is a built-in function in Python that can be used to create a tuple.
- Parameters: This function accepts a single parameter iterable (optional). It is an iterable(list, range etc..) or an iterator object.
- A tuple is an immutable sequence type.
Similar questions