#python #tutorial #course
---- LOCAL ----
def func1():
x = 1 #local
print(x)
def func2():
x = 2 #local
print(x)
func1()
func2()
---- ENCLOSED ----
def func1():
x = 1 #enclosed
def func2():
print(x)
func2()
func1()
---- GLOBAL ----
def func1():
print(x)
def func2():
print(x)
x = 3 #global
func1()
func2()
---- BUILT-IN ----
from math import e
def func1():
print(e)
func1()
On this page of the site you can watch the video online What is Python scope resolution? 🔬 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 06 December 2022, share the link with friends and acquaintances, this video has already been watched 49,584 times on youtube and it was liked by 1.5 thousand viewers. Enjoy your viewing!