How do you make a higher order function in Python?



How do you make a higher order function in Python?..

Answer / chaitanya

A higher-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 , we need to import functools module

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is __ doc __ in python?

0 Answers  


Is python a compiled or interpreted language?

0 Answers  


Can I use python instead of javascript?

0 Answers  


Tell us what is the usage of help() and dir() function in python?

0 Answers  


How to find the index of an element in a list python?

0 Answers  


Is python better than matlab?

0 Answers  


Tell me what flask is and its benefits?

0 Answers  


Give an example of a shuffle() method?

0 Answers  


Is google made with python?

0 Answers  


What is monkey patching?

0 Answers  


Where we can use else block in python programming?

0 Answers  


Is set iterable in python?

0 Answers  


Categories