The mutable default argument trap

Default argument values are evaluated ONCE — when the function is defined, not on every call. Predict every line this program prints.

Liseh Academy
The mutable default argument trap Coding Challenge | Liseh Academy