- 1

Lambda

What is lambda functions

22nd Jun 2021, 6:27 PM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar
3 Answers
23rd Jun 2021, 5:12 AM
Cmurio
Cmurio - avatar
+ 2
A lambda function is an anonymous function that that can take numerous arguments but can only have one expression (function body) x = lambda a: a + 5 x(5) returns 10 You could use them for define quick functions that do not require a lot of logic.
22nd Jun 2021, 6:42 PM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
+ 1
A Lambda Function in Python programming is an anonymous function or a function having no name. It is a small and restricted function having no more than one line. Just like a normal function, a Lambda function can have multiple arguments with one expression. A lambda function can have any number of parameters, but the function body can only contain one expression. Moreover, a lambda is written in a single line of code and can also be invoked immediately. Learn lambda: https://www.w3schools.com/python/python_lambda.asp  https://www.guru99.com/python-lambda-function.html
22nd Jun 2021, 6:51 PM
SammE
SammE - avatar