Python Tutorial Python Advanced Python References Python Libraries

Python - Tuple Methods



The Python has a number of methods and functions that are available for use with tuples. These methods and functions are listed below in alphabetical order. For more details about any one of these, please visit its page.

Tuple Methods & Functions

MethodsDescription
count() Returns the number of occurrence of a specified element in the tuple
index() Returns the index of first occurrence of a specified element in the tuple
FunctionsDescription
len() Returns total number of elements in the tuple
tuple() tuple function/constructor is used to create tuple from iterable like list, tuple, set, string and dictionary, etc.