Understanding how functions nest in Python is key to uncovering decorators. Here we examine the syntax and behavior of nested functions as well as the nonlocal statement.
Support me by buying from Amazon through my affiliate link: https://amzn.to/2FBNVwA
Here's my Patreon account if you want to give me money: / realphysics
Other ways to support Real Physics: • How to Support Real Physics
Playlist: • Theory of Python
Thank you!