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

Purpose of "/" and "//" operator in python?

0 Answers  


post me some questions from pythom script

1 Answers   Infosys,


Given the first and last names of all employees in your firm, what data type will you use to store it?

0 Answers  


What is scheduling in threading?

0 Answers  


How variables are declared in python?

0 Answers  


Which is better java or python?

0 Answers  


What is the key difference between a list and the tuple?

0 Answers  


Tell me what are generators in python?

0 Answers  


Is Django written in Python?

0 Answers  


What is python, what are the benefits of using it, and what do you understand of pep 8?

0 Answers  


Is there a way to remove the last object from a list?

0 Answers  


Explain about multi threading on python?

0 Answers  


Categories