Рет қаралды 13,385
After this video, you are able to describe a closure, can write one in Python and decide if it is useful for you in your code.
C H A P T E R S
0:33 The problem with changing a global variable from a function
1:47 Use a closure to encapsulate the global variable
3:00 Where the name closure comes from
3:28 Comparing closures to a class with a single function
M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of my online courses: pythonforevery...
#pythonforeveryone #programming #python