Exploring Python's Scopes and Closures : A Code Conversation

preview_player
Показать описание
Have you been wondering how scopes and closures work in Python? Maybe you’ve just heard about object.__closure__, and you’d like to figure out what exactly it does. In this Code Conversation video course, you’ll see how to use the Thonny editor as a debugger to walk through some sample code and get a better understanding of scopes and closures in Python.

This Code Conversation video course covers how to:
- Clarify code by refactoring it with descriptive names
- Learn how functions access variables in local and nonlocal scopes
- Understand how inner and outer function calls open and close their own scopes

You can find the complete course here:
Рекомендации по теме
Комментарии
Автор

Excellent video. Very informative and easy to follow.

ada-victoria