Python · Dictionaries & Sets
What does this print, and why is it a classic bug? ``` def f(k, cache={}): cache[k] = k * k return cache f(2) print(f(3)) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
