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 are the advantages of python?
What are the differences between the threading and multiprocessing in python?
Explain about the dictionary function in python?
How to give comments in python?
When does dictionary is used instead of a list in python?
Why do we need operator overloading?
Does dataset api support python and r?
Will class members accessible by instances of class?
Consider multiple inheritances here. Suppose class c inherits from classes a and b as class c(a,b). Classes a and b both have their own versions of method func(). If we call func() from an object of class c, which version gets invoked?
Are there maps in python?
is Python similar to ruby?
Describe how to send email from a python script?