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 was your contribution to the above project?

0 Answers  


Which linux is best for python programming?

0 Answers  


What is the meaning of a single- and a double-underscore before an object name?

0 Answers  


What is docstring? How to define it?

0 Answers  


Why don’t python lambda have any statement?

0 Answers  






What animal sleeps the most?

0 Answers  


Does python support inheritance?

0 Answers  


How are the differences in help () and dir () functions?

0 Answers  


is there any maximum length expected for an identifier?

0 Answers  


Why do we need to overload operators?

0 Answers  


Explain the use of *args, **kwargs?

0 Answers  


What are operators?

0 Answers  


Categories