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 was your contribution to the above project?
Which linux is best for python programming?
What is the meaning of a single- and a double-underscore before an object name?
What is docstring? How to define it?
Why don’t python lambda have any statement?
What animal sleeps the most?
Does python support inheritance?
How are the differences in help () and dir () functions?
is there any maximum length expected for an identifier?
Why do we need to overload operators?
Explain the use of *args, **kwargs?
What are operators?