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 |
Print contents of a file ensuring proper error handling?
Is string immutable ?
Is python duck typed?
Python How do you make a higher order function in Python?
What is a modifier in python?
What is os module will do in python?
Does python have a switch-case statement?
What is python used for?
Can a set be sorted python?
What is difference between input and raw_input?
Explain python list comprehension?
Give the output of this example: a[3] if a=[1,4,6,7,9,66,4,94].