**Code is communication**
admin: @Xojarbu
https://t.me/solutions_py for problem solutions
Post #86
392

Title: Namespaces
A namespace is a system that has a unique name for each and every object in Python. An object might be a variable or a method.
There are 3 types of namespaces:
built-in namespaces
global namespaces
local namespaces
e.g
A namespace is a system that has a unique name for each and every object in Python. An object might be a variable or a method.
There are 3 types of namespaces:
built-in namespaces
global namespaces
local namespaces
e.g
var1 = 5 # global namespace
def some_func():
var2 = 6 # local namespace
The built-in namespace is always available when Python is running. You can list all built-in namespaces with dir(__builtins__)
Source













