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 uuid used for?
What do you mean by ‘suites’ in python?
What is s in python 3?
Does python has any command to create variable?
Is map faster than for loop python?
What is the difference between re.search and re.match?
is Python similar to ruby?
What are the built-in types of python?
What is slice notation in python to access elements in an iterator?
What are the rules for a local and global variable in python?
What does if __name__ == “__main__”: do?
What is a class and super class?