Efficient and ultimate rule for python scope | LEGB | 8 mins read
Python Scope

Efficient and ultimate rule for python scope | LEGB | 8 mins read

Holla, today we are going to talk about "Python Scope & LEGB Rule". The scope refer to the area,region or environment in which an entity can refer to some value or other entity.LEGB stands for Local,Enclosing,Global and BuiltIn scope. We can modify the scope of a variable using keywords like global and nonlocal.

Continue ReadingEfficient and ultimate rule for python scope | LEGB | 8 mins read