Find the length of the words in tuple

Find the length of the words in the tuple. It will print the number of letters in output and text is entered in the program. In Python, a list is an ordered and changeable collection data type. A list can also include duplicate entries. The len() function in Python is used to determine the length of any object.

tuplea = tuple("inlarn.com")
print(tuplea)
print(len(tuplea))

 

Output:

(‘i’, ‘n’, ‘l’, ‘a’, ‘r’, ‘n’, ‘.’, ‘c’, ‘o’, ‘m’)           

10