Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you make a higher order function in Python?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is self in python constructor?

847


What is none literal in python?

827


Do you know what does the keyword do in python?

827


What are the applications of python?

816


Why super is used in python?

847


What packages in the standard library, useful for data science work, do you know?

819


What is final and super keyword difference between them?

864


What is type conversion in python?

873


Why python is the best?

889


Name the built-in types provided by python?

874


Write a regular expression that will accept an email id. Use the re module.

877


What is the with statement in python?

891


What happens with the following function definition?

948


What is os module?

848


How do I generate random numbers in python?

950