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 |
Purpose of "/" and "//" operator in python?
post me some questions from pythom script
Given the first and last names of all employees in your firm, what data type will you use to store it?
What is scheduling in threading?
How variables are declared in python?
Which is better java or python?
What is the key difference between a list and the tuple?
Tell me what are generators in python?
Is Django written in Python?
What is python, what are the benefits of using it, and what do you understand of pep 8?
Is there a way to remove the last object from a list?
Explain about multi threading on python?