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 |
Explain about cookies in python?
How do you perform pattern matching in python?
What does means by split do in python?
What is an operator in python?
What is uuid format?
What does the meaning of gil in python language?
Tell me is there a switch or case statement in python? If not then what is the reason for the same?
What are the tools that help to find bugs or perform the static analysis?
Do you know what are python decorators?
Why Should We Use File Operation?
What are basic overloading methods in python?
How do you calculate the length of a string?