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 to get the ascii value in python?
How do you disconnect from the database?
What are python modules? Name some commonly used built-in modules in python?
What is built-in type in python?
Is there any equivalent to scanf() or sscanf()?
How do you remove duplicates from a list whilst preserving order?
What are python modules?
What are python scripts used for?
Define monkey patching?
What are the rules for global and local variables in python?
What does the term ‘monkey patching’ refers to in python?
How to convert a string into datetime?