Scope and lambda : Nested function : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Nested function »

 

Scope and lambda


x = 10
def foo():
    y = 5
    bar = lambda :x+y
    print bar()
foo()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Nested function