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 can you handle multiple exception in python?
What is with open in python?
What does %d do in python?
Describe how to send mail from a Python script.
How to send an email in python language?
What is python software?
What is the difference between python 2 and python 3?
Explain the concept of closures in Python.
What is map function in python?
A module print_number given, what will be the output of the following code?
What is python mapping?
Give an example to capital first letter of a string?