Pass functions to other functions as arguments : Parameter : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Parameter »

 

Pass functions to other functions as arguments


def echo(message)
    print message 


def indirect(func, arg)
     func(arg)     

indirect(echo, 'Hello jello!')



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Parameter