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 python used for at google?

0 Answers  


What is the other way of checking truthiness?

0 Answers  


Explain about exceptions in python?

0 Answers  


What type of a language is python? Interpreted or Compiled?

0 Answers  


What does means by split do in python?

0 Answers  


How many name spaces are defined in python?

0 Answers  


Can we develop a web application using Python

0 Answers  


What is python __ repr __?

0 Answers  


Is python good for microservices?

0 Answers  


Which is more powerful python or c++?

0 Answers  


What is the use of pycharm?

0 Answers  


What is lambda function ?

0 Answers  


Categories