create an inner function : Def : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Def »

 

create an inner function


def foo():
    def bar():
        print 'bar() called'

    print 'foo() called'
    bar()

foo()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Def