ProgrammingEasyTCS NQT · Wipro pattern

Which of these built-in Python types is immutable?

  1. A. dict
  2. B. tuple
  3. C. list
  4. D. set

Correct answer: B. tuple

A tuple cannot be changed after it is created. list, dict and set all support in-place changes (append, item assignment, add).

More Python Programming questions

Exams that ask this topic