Computer Science, asked by edpbnpapers5407, 8 months ago

What is the difference between a tuple and a list ?

Answers

Answered by satveer2410a
3

List : these are mutable, you can change the elements of a list.

Tuple : these are immutable, you can do not change the elements of tuple.

Answered by lovingheart
0

Tuple is defined as the row of elements while list is defined as the list of data elements that are presented in the form of columns.

Explanation:

  • In tuple, the elements are immutable
  • In the case of list, the elements are mutable which means they can be modified when needed
  • Tuples works faster than list and if we want to store constant set of values, we can make use of tuples.
  • The code is made more safer with tuples when compared to list.

To know more:

1) What is mean by tuples

https://brainly.in/question/5259888.

2) Define the following term of tuple

​https://brainly.in/question/8441070

Similar questions