A hard exercise to help build the right mental model for Python data.

The “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://github.com/bterwijn/memory_graph

  • b34k@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Not too familiar with the union operator for dicts, but that result was not what I expected.