Back to feed

Understanding Mutable and Immutable Types in Python

Real Python
Understanding Mutable and Immutable Types in Python

EDITOR BRIEF

The article explains how mutable and immutable data types work in Python. It describes how to use these properties when writing code.

INSIGHTS

Knowing whether a value can change helps you reason about your program. Try identifying mutable and immutable values in a small Python script.

CodeFriends courses that build on this story. Practice in the browser with nothing to install.

COMMENTS

0/40
0/2000

Loading comments…