QuestionQ13

VerifiedData Serialization

Which two Python data types can be changed after they have been created?

Choose two
Explanation

In Python, data types are classified as mutable or immutable. Lists and dictionaries are mutable, meaning their contents can be altered in place (items added, removed, or changed) without creating a new object. Integers and strings, by contrast, are immutable — any operation that appears to modify them actually creates a new object in memory rather than altering the original.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!