len()
` function. Here's an example program that demonstrates this :# create a tuple
my_tuple = (1, 2, 3, 4, 5)
# get the length of the tuple
tuple_length = len(my_tuple)
# print the length of the tuple
print("The length of the tuple is:", tuple_length)
The length of the tuple is: 5