MENU
Question -

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.

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×