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 to get the ascii value in python?

0 Answers  


How do you disconnect from the database?

0 Answers  


What are python modules? Name some commonly used built-in modules in python?

0 Answers  


What is built-in type in python?

0 Answers  


Is there any equivalent to scanf() or sscanf()?

0 Answers  






How do you remove duplicates from a list whilst preserving order?

0 Answers  


What are python modules?

0 Answers  


What are python scripts used for?

0 Answers  


Define monkey patching?

0 Answers  


What are the rules for global and local variables in python?

0 Answers  


What does the term ‘monkey patching’ refers to in python?

0 Answers  


How to convert a string into datetime?

0 Answers  


Categories