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 self in python constructor?
How will you remove all leading and trailing whitespace in string in python?
What is arange function in python?
What are the supported data types in python?
Describe how to use Sessions for Web python.
What is python used for?
How do I exit python?
How do you copy an object in python?
What are the differences between python 2.x and python 3.x?
What is python interpreter?
What is frozen set in python?
What are the basic elements of python?