Which of the following is an immutable data type in Python?
Correct answer
D. tuple
7 views
D. tuple
7 views
Tuples cannot be changed after creation, while lists, dicts and sets are mutable.
Asked in: Python Interview Data Types
https://docs.python.org/3/library/stdtypes.htmlNot sure why the answer is D? Ask here and get an explanation.