programming-examples/python/Tuple/Python program to find the length of a tuple.py
2019-11-15 12:59:38 +01:00

5 lines
134 B
Python

#create a tuple
tuplex = tuple("w3resource")
print(tuplex)
#use the len() function to known the length of tuple
print(len(tuplex))