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 |
How will you remove a duplicate element from a list?
What does __ name __ mean in python?
Is r easier than python?
How to send a object and its value to the garbage collection?
Is integer immutable in python?
What is data type set in python and how to work with it?
Is Python a compiled language or an interpreted language?
What do you understand by monkey patching in python?
Should I learn c before python?
What do you think is the output of the following code fragment?
How do you write a simple code in python?
What are the differences in the deep and shallow copy?