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 a panda in python?

787


Is python a nonetype?

852


How do I run a py file in python shell?

803


What is the starting point of python code execution?

949


What is list comprehension? Give an example.

1040


python is case sensitive ?

806


What is the best tutorial for python?

951


Why don’t python lambda have any statement?

855


What is raw_input in python 3?

892


What is dataframe in python?

808


Point out the use of help() function?

829


What do you mean by ‘suites’ in python?

869


Which package is the fastest form of python?

922


What is lambda function in python?

796


What is import time in python?

812