Which data structure is mutable?
-
A
Tuple
-
B
List
Correct answer
-
C
String
-
D
Integer
11 views
Explanation
Lists are mutable; their elements can be changed. Tuples and strings are immutable.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ