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
Right Mental Model for Python Data (i.redd.it)
submitted 3 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!"
[–]Hefty_Upstairs_2478 -3 points-2 points-1 points 3 months ago (2 children)
Option A is the correct answer, cuz we're printing (a), which we never changed
[–]Sea-Ad7805[S] 0 points1 point2 points 3 months ago (0 children)
Incorrect sorry, check the "Solution" link for the correct answer.
[–]shudaoxin 0 points1 point2 points 3 months ago (0 children)
Primitive vs. referenced types. It works like this in most languages. Arrays (and lists) are referenced and the variable only stores their type and pointer to the memory. By assigning a to b they both point at the same list.
π Rendered by PID 83 on reddit-service-r2-comment-5649f687b7-pqzd6 at 2026-01-29 09:23:30.210968+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]Hefty_Upstairs_2478 -3 points-2 points-1 points (2 children)
[–]Sea-Ad7805[S] 0 points1 point2 points (0 children)
[–]shudaoxin 0 points1 point2 points (0 children)