Mega Code Archive

 
Categories / Python Tutorial / Function
 

Pass functions to other functions as arguments

def echo(message):      print message  def indirect(func, arg):       func(arg)      indirect(echo, 'Hello jello!')