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 do you sort a list in ascending order python?
What is the difference between numpy and scipy?
Why is python weakly typed?
Explain how to create a multidimensional list.
What is the meaning of def in python?
How are the differences in help () and dir () functions?
What is the cost of python certification?
Do you know what is the difference between deep and shallow copy?
How is python interpreted language?
What is a function for flatten an irregular list of lists?
Describe how multithreading is achieved in python?
What do you understand by python modules?