Which of the following statements is FALSE about mutable and immutable data types in Python?
a. Mutable data types can be changed after they are created, while immutable data types cannot.
b. Mutable data types include lists, dictionaries and sets, while immutable data types include strings, numbers and tuples.
c. Mutable data types can be used as keys in dictionaries, while immutable data types cannot.
d. Mutable data types can cause unexpected errors when they are shared by multiple variables, while immutable data types do not.
Answer:
Answer by student
c. Mutable data types can be used as keys in dictionaries, while immutable data types cannot.
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.