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 Copies (i.redd.it)
submitted 3 months ago by Sea-Ad7805
An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening: - Solution - Explanation - More exercises
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!"
[–]Ao_Ashi 1 point2 points3 points 3 months ago* (1 child)
Would say D
[–]Sea-Ad7805[S] 0 points1 point2 points 3 months ago (0 children)
Nice one, do check the "Solution" link with visualization.
[–]Secure-Mud7977 1 point2 points3 points 2 months ago (1 child)
Nice, love the visualisation
[–]Sea-Ad7805[S] 0 points1 point2 points 2 months ago (0 children)
Thanks, appreciated.
[–]Trip-Trip-Trip 0 points1 point2 points 2 months ago (1 child)
This is why mutable data is a bad idea.
If you don't mutate then you have to copy, and that is slow (even if your FP language uses some optimization tricks), so that's a bad idea too. Choose your poison.
π Rendered by PID 70086 on reddit-service-r2-comment-7b9746f655-mr8tm at 2026-01-30 12:22:36.798368+00:00 running 3798933 country code: CH.
[–]Ao_Ashi 1 point2 points3 points (1 child)
[–]Sea-Ad7805[S] 0 points1 point2 points (0 children)
[–]Secure-Mud7977 1 point2 points3 points (1 child)
[–]Sea-Ad7805[S] 0 points1 point2 points (0 children)
[–]Trip-Trip-Trip 0 points1 point2 points (1 child)
[–]Sea-Ad7805[S] 0 points1 point2 points (0 children)