Write a Python program to find the length of a tuple


The program is written in Python and it declares a tuple named a with six elements: "Lion", "Cat", "Dog", "Panda", "Tiger", and "Fox". The len function is then used to find the length of the tuple, which is 6. Finally, the length is printed with the string "Length :" using the print function.

Source Code

a = ("Lion","Cat","Dog","Panda","Tiger","Fox")
print("Length :",len(a))

Output

Length : 6


Example Programs