What do you mean by LEGB ?

Question :

What do you mean by LEGB ?

The order for name resolution (for names inside a function) is: local, enclosing function for nested def, global, and then the built-in namespaces (i,e., LEGB).
L: Local namespace which is specific to the current function.
E: for nested function, the Enclosing function's namespace.
G: Global namespace for the current module.
b: Built-in namespace for all the modules.                                                                           


Similar Questions


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz