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 is the best front end for python?
How do you use modulus in python?
How do you get the last value in a list or a tuple?
What are the generators in python?
Tell me what is the difference between list and tuple?
Why cannot lambda forms in Python contain statements?
Different file processing modes supported by python?
What packages in the standard library, useful for data science work, do you know?
Is python in demand?
What is a negative indexing in python?
Which is better list or dictionary in python?
How to copy an object in python?