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

How do you sort a list in ascending order python?

0 Answers  


What is the difference between numpy and scipy?

0 Answers  


Why is python weakly typed?

0 Answers  


Explain how to create a multidimensional list.

1 Answers  


What is the meaning of def in python?

0 Answers  






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

0 Answers  


What is the cost of python certification?

0 Answers  


Do you know what is the difference between deep and shallow copy?

0 Answers  


How is python interpreted language?

0 Answers  


What is a function for flatten an irregular list of lists?

0 Answers  


Describe how multithreading is achieved in python?

0 Answers  


What do you understand by python modules?

0 Answers  


Categories