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 |
What is __ doc __ in python?
Is python a compiled or interpreted language?
Can I use python instead of javascript?
Tell us what is the usage of help() and dir() function in python?
How to find the index of an element in a list python?
Is python better than matlab?
Tell me what flask is and its benefits?
Give an example of a shuffle() method?
Is google made with python?
What is monkey patching?
Where we can use else block in python programming?
Is set iterable in python?