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 |
Which is best python or r?
How to improve performance of this code?
Is c++ required for learning python?
What is python encapsulation?
What will be the output of data[-2] from the list data = [1,5,8,6,9,3,4]?
Are tuples mutable?
Is python full stack?
What is map?
Since switch-case is not used in python – what are the replacements for switch statement in python?
What is flask used for in python?
What are the steps required to make a script executable on Unix?
Why is python 2 still used?