Computer Science, asked by himank2081, 4 months ago

Which of the below given functions cannot be used with nested tuples? *

index()

count()

max()

sum()​

Answers

Answered by Anonymous
11

Addition in Nested Tuples – Python

Sometimes, while working with records, we can have a problem in which we require to perform index wise addition of tuple elements. This can get complicated with tuple elements to be tuple and inner elements again be tuple. Let’s discuss certain ways in which this problem can be solved.

Answered by IamSameerhii
9

\;\qquad\;\;\large{\odot\;\;\underline{\underline{\bf{\red{Your\; Questions↷ }}}}}

Which of the below given functions cannot be used with nested tuples?

 

  • index()

  • count()

  • max()

  • sum()

\;\qquad\quad\;\;\large{\odot\;\;\underline{\underline{\bf{\red{Required\;Answer↷ }}}}}

Thus lists present inside tuples (nested tuple) can be changed. We cannot use append() or extend() function in the Tuple as tuples are immutable. Also, you cannot use remove () or pop () function as well.

\large{\boxed{\mathfrak{\overbrace{\underbrace{\fcolorbox{r}{red}{Hope It Helps. ♡★❥✌ }}}}}}

Similar questions