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.                                                                           


Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad