Python Tutorials - Namespace and Variable Scope

Опубликовано: 31 October 2024
на канале: Amulya's Academy
84,410
1.6k

In this Python programming video tutorial we will learn about namespace and variable scope in detail.

To understand the decorators we need to learn namespace and variable scope.
Generally namespace (sometimes also called a context) is a naming system for making names unique to avoid ambiguity.
Namespaces in Python are implemented as Python dictionaries, this means it is a mapping from names (keys) to objects (values).

Variable scope refers to the visibility of variables. In other words, which parts of your program can see or use it.




#PythonProgramming #Decorators

For more free tutorials on computer programming
  / amulsacademy  
  / amulsacademy