Computer Science, asked by Malembi4112, 23 days ago

7.Choose the correct option with respect to Python(1 Point)A. Both tuples and lists are immutable.B. Tuples are immutable while lists are mutable.C. Both tuples and lists are mutable.D. Tuples are mutable while lists are immutable.​

Answers

Answered by richitha77
2

Answer:

B

Explanation:

tuples are immutable while list are mutable

Answered by Jasleen0599
1

The correct answer is (b) Tuples are immutable while lists are mutable.

  • A Tuple is an assortment of Python objects isolated by commas.
  • In some ways, a tuple is like a list as far as ordering, settled articles, and reiteration however a tuple is unchanging, not normal for lists that are alterable.
  • Python tuples are an information structure that stores an arranged succession of values. Tuples are unchanging.
  • This implies you can't change the values in a tuple. Tuples are characterized by brackets and commas. For example, you might utilize a tuple to store a list of worker names.
  • Python List is an information structure that keeps an arranged assortment of changeable information components. The components in the list are encased inside square sections [].
Similar questions