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.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo