In this python tuple program, we will find the length of a tuple.
Steps to solve the program
- Take a tuple as input.
- Find the length of a tuple using len().
- Print the output.
tup = ('v','i','r','a','t')
print("Original tuple: ",tup)
print("Length of the tuple: ",len(tup))
Output :
Original tuple: ('v', 'i', 'r', 'a', 't')
Length of the tuple: 5