Lesson 45 of 62 ยท about 16 minutes
Closures and Scope ๐
Closures and Scope ๐ Welcome to Deep Space. Before we wrap functions in decorators, it pays to understand exactly how Python decides which variable a name refers to, and how an inner function can carry data around with it long after the outer function hasโฆ
This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.