in Python, default arguments are evaluated once, at function definition — not each call. That’s why def f(x=[]) is a classic footgun: the list persists across calls. Use x=None and set it inside. 🐍