Tuesday, December 26, 2017

Lambda Functions in Python

So Lambda Functions are just an anonymous function.they are very simple just saves your space and time.they are useful in case of higher  order function.Lets take an example:

def double(a):
        return a*2

Convert to Lambda Function

double = lambda a: a*2

No comments: