Question PRG-PY-0005
EasyWhich of these Python types is immutable?
- A.
dict
- B.
set
- C.
Show answer and explanation
Answer: D
Tuples can't be changed after creation; lists, dicts and sets can.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
Which of these Python types is immutable?
dict
set
Answer: D
Tuples can't be changed after creation; lists, dicts and sets can.
list
tuple