What is the length of the tuple shown below?
t = ((((‘a’,1),’b’,’c’),’d’,2),’e’,3)
Answers
Answered by
1
Answer:
#create a tuple
tuplex = tuple("w3resource")
print(tuplex)
#use the len() function to known the length of tuple
print(len(tuplex))
Sample Output:
('w', '3', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e')
10
Answered by
1
I gave the attachment of my answer
hope it helps
Attachments:
Similar questions