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 most "pythonic" way to iterate over a list in chunks?
What is the speciality of python?
How many hours does a python sleep?
What advantages does Python offer as a programming tool in today's environment?
How can you prevent dogpile effect?
Does python support inheritance?
What is python with statement?
What is gil in python?
What does the break keyword refer to in python?
How to import a module given the full path?
What is the module and package in python?
When does a dictionary is used instead of a list?