Python Tuple Length
Tuple Length
To determine how many items a tuple has, use the len() method:
Example
Print the number of items in the tuple:
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))
Try it Yourself »
print(len(thistuple))
Related Pages
Python Tuples Tutorial Tuple Access Tuple Items Change Tuple Item Loop List Items Check if Tuple Item Exists Tuple With One Item Remove Tuple Items Join Two Tuples