1. Home
  2. Data Science
  3. Python
  4. Which of the following is an immutable data type in Python?

Added 25 Nov 2026

Which of the following is an immutable data type in Python?

  1. list
  2. dict
  3. set
  4. tuple Correct answer

Correct answer

D. tuple

7 views

MCQSEXAM

Explanation

Tuples cannot be changed after creation, while lists, dicts and sets are mutable.

Reference

Asked in: Python Interview Data Types

https://docs.python.org/3/library/stdtypes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs