Puzzle 19: Explanation

Let’s find out how mutable default arguments work in Python.

We'll cover the following

Try it yourself

Try executing the code below to verify the results:

Get hands-on with 1000+ tech skills courses.