Up Your Coding in Python Using Lists

Part II: Shallow Copy vs. Deep Copy

Deck451
Python in Plain English
4 min readMar 2, 2022

--

Photo by Christopher Burns on Unsplash

After having presented some of the basics in reference to lists in Python, this article’s purpose is to help clear the haze around the two object copying mechanisms present in Python (and not just Python, for that matter, but let’s not digress): shallow and deep copying.

--

--

Senior Software Engineer. Open-source contributor. Knowledge spreader. Fan of everything Python. Cybersecurity enthusiast. TryHackMe top 3%.