← Back to PythonMutable Default Arguments
Pythonpython
The Question
Why are mutable default arguments dangerous in Python?
What a Strong Answer Covers
- created once at definition
- "shared across calls
- "None default fix
Related Questions
Practice This Question
Get AI-graded feedback on your answer with follow-up probes on weak points.
Take the Free Assessment