LEGB Python Abbreviation

LEGB has various meanings in the Python category. Discover the full forms, definitions, and usage contexts of LEGB in Python.

Local, Enclosing, Global and Built-in

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.

Python

Citation

Last updated: