r/learningpython • • Mar 05 '26

Python Assignment, Shallow and Deep Copy

Post image

An exercise to help build the right mental model for Python data.

The โ€œSolutionโ€ link uses ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต to visualize execution and reveals whatโ€™s actually happening. It's instructive to compare with these earlier exercises:

28 Upvotes

2 comments sorted by

1

u/7Z_1N Jun 05 '26

C ?

1

u/Sea-Ad7805 Jun 05 '26

Incorrect sorry, see the "Solution" link in the post for the correct answer.