examerioLogin
← Backend PythonQuestion 13 of 49

What’s the issue with default mutable arguments in Python?

📘 Explanation

Mutable default arguments are evaluated only once when the function is defined, so the same list is reused and mutated across every call. The other options incorrectly claim the default resets, gets copied each time, or that Python blocks mutation entirely.

Related questions

← PreviousNo login needed