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.                                                                           


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad