Skip to main content

Course

Python

PythonPart 6 of 7 · Chapter 4 of 7

Why Changing One Changed the Other

You copied the list, changed the copy, and the original changed with it. Point three different kinds of copy at the same nested list, mutate one item at the bottom, and see precisely which of them flinch.

Read first: Names Are Not Boxes


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.