Python mutable default arguments: why your list keeps growing (tested examples)
A list that keeps growing between function calls is one of the most common Python surprises in exams and interviews. Here is why it happens, with output I ran on Python 3.10. The bug def add_bad(x, bu