Computer Science, asked by sharmashaileshkr, 2 months ago

difference between tuple and list​

Answers

Answered by singhpriya36381
1

Answer:

One of the most important differences between list and tuple is that list is mutable, whereas a tuple is immutable. This means that lists can be changed, and tuples cannot be changed. So, some operations can work on lists, but not on tuples. ... Because tuples are immutable, they cannot be copied.

Answered by Anonymous
3

LIST

➥ Lists are mutable

➥ Implication of iterations is Time-consuming

➥The list is better for performing operations, such as insertion and deletion.

➥ Lists consume more memory

➥ Lists have several built-in methods

➥ The unexpected changes and errors are more likely to occur

TUPLE

➥ Tuple are immutable

➥ Implication of iterations is comparatively Faster

➥ Tuple data type is appropriate for accessing the elements

➥ Tuple consume less memory as compared to the list

➥ Tuple does no have must built-in methods.

In tuple, it is hard to take place.

Similar questions