Q. What is the length of the tuple shown below ?


t = (((('a', 1), 'b', 'c'), 'd, 2), 'e', 3)


Answer :-

The length of this tuple is 3 because there are just three elements in the given tuple. Because a careful look at the given tuple yields that tuple t is made up of:

t1 = "a", 1
t2 = t1, "b", "c"
t3 = t2, "d", 2
t = (t3,"e", 3)

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post