Python program follows LEGB rule when trying to access a variable. (a) L(Local): Variables defined within a function or block have local scope. They're only accessible within that function or block.
Scope refers to the region of the code where a variable is accessible. In Python, there are different types of scopes: local, enclosing, global, and built-in. Understanding scope is crucial for ...