this post was submitted on 09 Oct 2025
1 points (100.0% liked)

Python

8032 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 3 years ago
MODERATORS
 

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:

top 5 comments
sorted by: hot top controversial new old
[–] ObsidianZed@lemmy.world 0 points 11 months ago

Well on one hand, I guessed correctly. (I'm not super familiar with Python)

On the other hand, that solution site is not exactly mobile friendly.

[–] moseschrute@lemmy.world 0 points 11 months ago (1 children)

My guess

It’s C. And if that’s wrong, it has to be D. There is no way it’s A or B

[–] bterwijn@programming.dev 0 points 11 months ago

C is incorrect,sorry. See the "Solution" link for the correct answer.

[–] gigachad@piefed.social 0 points 11 months ago

Why can't it just return the result but has to use the same names in both scopes, I hate it

It's a nice exercise and a cool visualization though

[–] synae@lemmy.sdf.org 0 points 10 months ago