Python offers many built-in function and methods for tuple manipulation.
- len()- This returns the length of the tuple that is a total number of elements in the tuple.
- max()- This method returns the element from tuple having maximum value.
- min()- This method returns the element from the tuple having minimum value.
- tuple()- This method is used to create tuple from different types of values.
s="Python" t=tuple(s) print(t)
Output- ('p', 'y', 't', 'h', 'o', 'n')
This is all about functions and methods of tuple in python.