Source Code:
(back to article)
# Getting the length of a tuple my_tuple = ("apple", "banana", "cherry") length = len(my_tuple) print(length) # Output: 3
Result:
Report an issue