¡Sorpréndeme!

Lecture 71: Scope Rule-II in Python

2025-05-23 2 Dailymotion

In Python, "scope" refers to the region of a program where a variable or function is accessible and visible. It determines where a variable can be used and which parts of the code can access it. Python's scope rules are governed by the LEGB rule, which dictates the order in which Python searches for names: Local, Enclosing, Global, and Built-in.