Not published yet

I passed my dictionary to a function and it changed

Two names, one object, and the check that ends the confusion

Publishing Thursday morning · December 3, 2026
I passed my dictionary to a function and it changed

Why a function edits your dictionary, how id() and ‘is’ prove it, why a copy is only one level deep, and the habit of returning a new value instead.

I passed my dictionary to a function and it changed | Vibecodes