LEGB Rule

/Tag: LEGB Rule

Python Tutorial: Variable Scope – Understanding the LEGB rule and global/nonlocal statements

By |2019-12-14T00:33:19+00:00December 14th, 2019|Python Video Tutorials|

In this Python Tutorial, we will be going over variable scope in Python. Scope is important because we need to understand it in just about every program we write. It allows us to understand where our variables can be seen from within our program and also what values these variables hold. It also helps with [...]