Which of the below given functions cannot be used with nested tuples? *
index()
count()
max()
sum()
Answers
Answered by
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
9
Which of the below given functions cannot be used with nested tuples?
- index()
- count()
- max()
- sum()
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.
Similar questions