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?



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

Post New Answer

More Python Interview Questions

What is the most "pythonic" way to iterate over a list in chunks?

0 Answers  


What is the speciality of python?

0 Answers  


How many hours does a python sleep?

0 Answers  


What advantages does Python offer as a programming tool in today's environment?

3 Answers  


How can you prevent dogpile effect?

0 Answers  


Does python support inheritance?

0 Answers  


What is python with statement?

0 Answers  


What is gil in python?

0 Answers  


What does the break keyword refer to in python?

0 Answers  


How to import a module given the full path?

0 Answers  


What is the module and package in python?

0 Answers  


When does a dictionary is used instead of a list?

0 Answers  


Categories