tg-me.com/python_codes/209
Last Update:
What is scope resolution?
๐ A scope is a block of code where an object in Python remains relevant.Each and every object of python functions within its respective scope.As Namespaces uniquely identify all the objects inside a program but these namespaces also have a scope defined for them where you could use their objects without any prefix. It defines the accessibility and the lifetime of a variable.
Letโs have a look on scope created as the time of code execution:
๐A local scope refers to the local objects included in the current function.
๐A global scope refers to the objects that are available throughout execution of the code.
๐A module-level scope refers to the global objects that are associated with the current module in the program.
๐An outermost scope refers to all the available built-in names callable in the program.
Share and Support
@Python_Codes
BY Python Codes
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/python_codes/209