Number of Scopes : Nested function : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Nested function »

 

Number of Scopes


def foo():
    m = 3
    def bar():
        n = 4
        print m + n
    print m
    bar()
foo()
foo()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Function
» Nested function