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

Is java or python better?

0 Answers  


What are different modes in file operations?

0 Answers  


What do you understand of pep 8?

0 Answers  


What are the disadvantages of python?

0 Answers  


What do you understand by mutable and immutable in python?

0 Answers  


How do I get a list of all files (and directories) in a given directory in Python?

0 Answers  


Tell me how does python handle the memory management?

0 Answers  


When is not a good time to use python generators?

0 Answers  


Explain garbage collection with python?

0 Answers  


What is python encapsulation?

0 Answers  


What is the use of globals() function in python?

0 Answers  


Which is faster c++ or python?

0 Answers  


Categories