programming-examples/python/Tuple/Python program to find the length of a tuple.py

5 lines
134 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
#create a tuple
tuplex = tuple("w3resource")
print(tuplex)
#use the len() function to known the length of tuple
print(len(tuplex))