Computer Science, asked by devanshi9343, 2 months ago


Which function cannot work with nested tuple and why?? ​

Answers

Answered by kunal152008
1

Answer:

Tuples are immutable in Python, hence data cannot be changed, but lists are mutable. 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.

Explanation:

hope this help u

Answered by Anonymous
1

Answer:

As we know, Tuples are immutable in Python, hence data cannot be changed, but lists are mutable. 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