▲ 11 ▼ Python Data Model: Copying (programming.dev) submitted 11 months ago by bterwijn@programming.dev to c/python@programming.dev 8 comments fedilink hide all child comments 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: https://memory-graph.com/#codeurl=https%3A%2F%2Fraw.githubusercontent.com%2Fbterwijn%2Fmemory_graph_videos%2Frefs%2Fheads%2Fmain%2Fexercises%2Fexercise19.py&play= Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model
[–] LodeMike@lemmy.today 1 point 11 months ago (2 children) A permalink fedilink source hideshow 2 child comments replies: [–] bterwijn@programming.dev [S] 2 points 11 months ago (1 child) Incorrect sorry, check the "Solution" link for the correct answer. permalink fedilink source parent hideshow 1 child comment replies: [–] LodeMike@lemmy.today 1 point 11 months ago Oh du-duoy. Forgot that list of list is a list of pointers somehow while also remembering a list is a pointer. Thanks. permalink fedilink source parent
[–] bterwijn@programming.dev [S] 2 points 11 months ago (1 child) Incorrect sorry, check the "Solution" link for the correct answer. permalink fedilink source parent hideshow 1 child comment replies: [–] LodeMike@lemmy.today 1 point 11 months ago Oh du-duoy. Forgot that list of list is a list of pointers somehow while also remembering a list is a pointer. Thanks. permalink fedilink source parent
[–] LodeMike@lemmy.today 1 point 11 months ago Oh du-duoy. Forgot that list of list is a list of pointers somehow while also remembering a list is a pointer. Thanks. permalink fedilink source parent