Forward References : Def : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Def »

 

Forward References


def bar():
    print 'in bar()'

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

foo()

# In fact, we can even declare foo() before bar():
def foo():
    print 'in foo()'
    bar()

def bar():
    print 'in bar()'

foo()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Def