1.

How do you make a higher order function in Python ?

Answer»

●  A high order function accepts one or more functions as input and returns a new function. Sometimes it is required to use function as data. 

●  To make high order function, one need the import functools module. 

●  The functools.partial() function is used often for high order function.



Discussion

No Comment Found