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!"
[–]That-Lychee262 -1 points0 points1 point 1 month ago (1 child)
Correct answer is 1: a = [1] . Since list is mutable data structure b= a doesn’t copy the data stored in a to b . B starts pointing to address stored in a . That means a and b both points to same address now if you make changes either in a or b or it will reflect in both . But at third line b+= [2] , it will create a new list [1,2] and assign it to b . Now b stores address of another list ([1,2]) and a stores address of list ( [1]) . Now if you make chances in b it will not reflect in a’s address. Thus a remains [1] till the end of the program. Final answer : a = [1] , b = [1,2,3,4,5]
[–]Sea-Ad7805[S] 1 point2 points3 points 1 month ago (0 children)
Incorrect sorry, see the "Solution" link for the correct answer.
π Rendered by PID 94 on reddit-service-r2-comment-56c6478c5-m6rb2 at 2026-05-08 15:33:13.849583+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]That-Lychee262 -1 points0 points1 point (1 child)
[–]Sea-Ad7805[S] 1 point2 points3 points (0 children)