Back to articles

Tag archive

#list

W
Jul 3, 2026

Why Does a List Change in Two Variables?

In the previous article, we learned that variables in Python don't store data themselves. Instead, a name simply refers to an object. With numbers, this feels quite intuitive. But as soon as we start working with lists, Python's behavior often surprises people.

Jul 3, 20262 min read0 reactions0 comments