โ† All lessons

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.

See the free lessons