Check Yourself

What is mutability?

 View/hide answer

A mutable object's values can be changed; we must be careful when working with mutable objects not to inadvertently change them.

 

 

What is the important difference between a list and a tuple?

 View/hide answer

Tuples are immutable (as are strings).

 

 

What is cloning?

 View/hide answer

Cloning creates a copy of a mutable object, so that the values can be manipulated without mutating the original object.

 

 

What are the important aspects of a dictionary?

 View/hide answer

A dictionary is mutable, with immutable keys, and unordered.