top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Python: What is lambda expression and when it is used ?

+1 vote
41 views
Python: What is lambda expression and when it is used ?
posted Mar 3, 2018 by Rupam

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

lambda expression is used to create one liner function which is mainly used when you have collection of items and you want perform some operation on a particular field of each item. Lambda expression is also known as anonymous function.
Mostly it is used with map, filter and reduce where all these three uses a function as first parameter and second parameter is input (a collection of data).

answer Mar 4, 2018 by Harshita
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...