IntermediateFunctions, Arguments, and Closures5 minLesson 34 of 4
Why is using a mutable object as a default argument value a bug waiting to happen in Python, and what's the correct pattern?

The illustrated walkthrough is behind sign-in.
Every prompt in the library is public. Any free InterviewOS account unlocks the diagram, the model answer, and the self-check.
Start with the answer
Overview
Sign in to read the model answer. Sign in
Objectives
What you'll learn
Sign in to read the learning objectives. Sign in