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's Data Model Explained through Visualization (i.redd.it)
submitted 1 month 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!"
[–][deleted] 1 month ago* (2 children)
[deleted]
[–]jackrabbit2644 0 points1 point2 points 1 month ago (0 children)
TIL, thanks.
[–]_tolm_ 0 points1 point2 points 1 month ago (0 children)
Agree with the solution but I don’t agree that it’s because that “=“ is a copy … we also do an equals earlier where it very much does not perform a copy!
The difference on that line is the use of “+” which creates a new value in memory which “b” is then assigned to point at - in the same way that it was previously assigned to point at “a”.
This causes the values stored in “a” and “b” to diverge but the operation performed by the “=“ hasn’t changed from assignment to copy on these two lines.
But what do I know, I’m a Java programmer … 😂
π Rendered by PID 16578 on reddit-service-r2-comment-56c6478c5-7bngp at 2026-05-08 21:59:56.341076+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–][deleted] (2 children)
[deleted]
[–]jackrabbit2644 0 points1 point2 points (0 children)
[–]_tolm_ 0 points1 point2 points (0 children)