Puzzle 11: Explanation

Let’s find out how closure works in Python and how to fix this bug.

We'll cover the following

Let’s try it!

Try executing the code below to verify the result:

Get hands-on with 1400+ tech skills courses.