Tuple len(tuple) Function

In Python Built-In Tuple len(tuple) function is used to returns the number of elements in the given tuple.


There is 1 Parameter used in Tuple len(tuple) Function: list for which the number of elements to be counted.
#len() function
tuple1 = ['BOB', 'TOM']
tuple2 = ['xyz', 'lmn', 'pqr']
print ("Length of First tuple: ", len(tuple1))
print ("Length of Second tuple: ", len(tuple2))