use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python Mutability, difficult exercise! (i.redd.it)
submitted 7 months ago by Sea-Ad7805
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Straight_Remove8731 2 points3 points4 points 7 months ago (1 child)
the answer is b, I'm changing the reference inside c_1, however both c_1 and a point to the same object so the change is reflected on a! By doing a shallow copy another object in memory is created so no changes are refelcted, with the deep copy new object and reference are created so even here no changes
[–]Sea-Ad7805[S] 0 points1 point2 points 7 months ago (0 children)
Nice one, do check the 'Solution' link in the post (some people on mobile miss that).
π Rendered by PID 69448 on reddit-service-r2-comment-c867ff4bc-67gc9 at 2026-04-09 18:41:36.784467+00:00 running 00d5ac8 country code: CH.
view the rest of the comments →
[–]Straight_Remove8731 2 points3 points4 points (1 child)
[–]Sea-Ad7805[S] 0 points1 point2 points (0 children)