Scope of variable and LEGB rule
Scope of variable and LEGB rule. Image by Author

TIPS FOR PYTHON DEVELOPERS

Scope of Variable and LEGB Rule

The scope of a variable refers to the places that you can see or access a variable

--

In the beginning, I assume that you know how to define your own functions — but not only that, you know how to write functions with multiple parameters and can return multiple values using tuples.

--

--

Computational Intelligence Researcher. Sharing Opinion and Tips in Computer Science. Love the idea to build healthier habits.