In this video, you will learn,
Using the LEGB Rule for Python Scope
Python resolves names using the so-called LEGB rule, which is named after the Python scope for names. The letters in LEGB stand for Local, Enclosing, Global, and Built-in.
Functions: The Local Scope
Nested Functions: The Enclosing Scope
Modules: The Global Scope
builtins: The Built-In Scope
#codewithdaneyal
On this page of the site you can watch the video online Python Scope Resolution - LEGB Rule | Python Tutorial in Hindi | #71 with a duration of hours minute second in good quality, which was uploaded by the user Code With Daneyal 23 August 2024, share the link with friends and acquaintances, this video has already been watched 184 times on youtube and it was liked by 6 viewers. Enjoy your viewing!