Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 10 which data structure is ordered and immutable? list tuple d…

Question

question 10
which data structure is ordered and immutable?
list
tuple
dict
set

Explanation:

Brief Explanations
  • A list is ordered but mutable (can be changed).
  • A tuple is ordered and immutable (cannot be changed).
  • A dict (dictionary) is unordered (in Python versions before 3.7; in 3.7+ insertion - order is maintained but it's still mutable in terms of key - value pairs).
  • A set is unordered and mutable.

Answer:

tuple